111,129
社区成员
发帖
与我相关
我的任务
分享FileStream f = File.Create("f:\\ex\\test1.txt");
//byte[] b = { 1, 2, 3, 4, 5, 2 };
string str = "123452";
byte[] b = Encoding.Default.GetBytes(str);
f.Write(b, 0, 5);
f.Close();
是要这样?0,5?[/quote]感谢这位弟们,我会了。话说这教材果然有问题,程序都是写错的啥叫数字?那个实际上应该叫做字节。