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