Reading and Writing Files
using System;
using System.IO;
public class ReadingWritingFiles
{
public static void Main()
{
FileStream f = new FileStream("output.txt", FileMode.Create);
StreamWriter s = new StreamWriter(f);
s.WriteLine("{0} {1}", "test", 55);
s.Close();
f.Close();
}
}
Related examples in the same category