摘要: //先判断是否存在文件 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 阅读全文
posted @ 2011-09-29 14:59 用心玲听 阅读(131) 评论(0) 推荐(0) 编辑