将字符串输出到文件中
其用到的空间是System.IO;
代码如下:
string newFileName = "E:\\11.txt";
FileStream fileStream = File.Create(newFileName);
string st = "1111";
byte[] bytes = new UTF8Encoding(true).GetBytes(st);
fileStream.Write(bytes, 0, bytes.Length);
fileStream.Close();