读 string s = File.ReadAllText(path); 写 // list是一个列表 List<string> list = new List<string>(); list.Add("sssssssssss"); File.WriteAllLines(path, list);