File.WriteAllText("文件路径","我是写入的数据"); File.WriteAllLines("文件路径",字符串数组);//每一个数组运元素写成一行 File.WriteAllBytes("文件路径",byte数组);