http://blog.youkuaiyun.com/jinjazz/article/details/2532845
运行下面代码可以建立一个3个字节的空txt文本文件,想了解其原因的请参考文本文件的编码方式和unicode的具体资料,google上就有很多。
- System.IO.FileStream fs = new System.IO.FileStream(@"d:/ss.txt", System.IO.FileMode.Create);
- fs.Write(new byte[] { 0xef, 0xbb, 0xbf }, 0, 3);
- fs.Close();