摘要:
//先判断是否存在文件 string path = "d:\\localName.txt"; FileStream fs = new FileStream(path,FileMode.OpenOrCreate); //没有的话则创建,有则打开 StreamReader sread = new StreamReader(fs); string input = sread.ReadLine(); if (input != null) { txtname.Text = input; lbtishi.Visible = false; } sread.Close(); fs.Clos 阅读全文