save a file in a string c# code example Example: c# store strings in file System.IO.File.WriteAllText("C:\your_path\your_file", Your_contents);