C#温故而知新 Stream篇

How to write super fast file streaming code in C#

// overwrite
using (StreamWriter sw = new StreamWriter("test.txt", false))
{
    sw.WriteLine(name[i].ToString());
}

using (StreamReader sr = new StreamReader(fileLoc))
{
		inputData.Text = sr.ReadToEnd();
		inputData.Visibility = Visibility.Visible;
}


Published

26 August 2013