// Creates a file and returns the path. var path = Path.GetTempFileName(); File.WriteAllText(path, "Hello, World!");