今天用streamwriter写数据,狂丢数据,最后才知道是因为没关闭,算是长记性了, using (StreamWriter sw = new StreamWriter(fs)) { sw.Write(ss); }