摘要: string xml=""+ ""+ ""+ "12345678"+ ""+ "2"+ ""+ ""+ " "+ ""+ ... 阅读全文
posted @ 2013-10-28 21:37 zhushang 阅读(438) 评论(0) 推荐(0)
摘要: MemoryStream memoryStream = new MemoryStream(); //创建其支持存储区为内存的流。UnicodeEncoding uniEncoding = new UnicodeEncoding(); string str = "helloworld"; //要存入的字符串byte[] string1 = uniEncoding.GetBytes(str); //转化为字节memoryStream.Write(string1 , 0, string1 .Length); //写入流 阅读全文
posted @ 2013-10-28 17:38 zhushang 阅读(747) 评论(0) 推荐(0)