CSharp examples for File IO:Text File
Save text to a text file
using System;//from w w w .j a v a2 s . c om using System.IO; class Program { static void Main(string[] args) { StreamWriter writer = new StreamWriter("test-file.txt", true); writer.WriteLine("Visual Studio is the best IDE"); writer.Close(); Console.WriteLine("Wrote to file"); } }