.net 读取和写入文件,bom字符 System.Text.UTF8Encoding
读取一:(bom字符会出来,) StringBuilder _strb = new StringBuilder(); FileStream fs = new FileStream(Server.MapPath(_path),FileMode.OpenOrCreate, FileAccess.Read); char[] cs = new char[fs.Length]; byte[] bs = new byte[fs.Length]; …
查看全文