文件流
FileStream Fs; StreamWriter Sw; StreamReader Sr;
Fs = new FileStream(@"C:\pwd.txt", FileMode.Append); Sw = new StreamWriter(Fs);
Sw.WriteLine(textBox1.Text);
Sr = new StreamReader(new FileStream(@"C:\pwd.txt", FileMode.Open), Encoding.Default);
while (Sr.ReadLine() != null) { label1.Text += Sr.ReadLine(); }
Sw.Close(); Fs.Close();