摘要:
c#中byte[] data=Encoding.Default.GetBytes(“你哈”);string text=Encoding.Default.Getstring(data);java中byte[] data=text.getBytes("iso-8859-1")string text =new string(data,'iso-8859-1'"); 阅读全文
摘要:
static void Main(string[] args) { FileStream fs3 = File.Open("c://test.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.Read); //创建文件流对象 string text = "nihao"; byte[] data = Encoding.Default.GetBytes(text); //转换成byte数组fs3.Write(data, 0, data.Length); fs3.Flush(); byte 阅读全文
摘要:
阅读全文