03 2011 档案
-
Stream.Read() / Stream.Position
摘要:public int Read(byte[] buffer, int offset, int count):buffer-存放数据的数组;offset-从buffer的那一位开始存放数据,offset需满足 0 < offset < buffer.Lenght-1;count-读入buffer中数据的长度,count需要满足 0 < count < buffer.Lenght-offset;eg:System.IO.StreamReader sr = new System.IO.StreamReader("d:\\pathtest.txt"); Sy 阅读全文
浙公网安备 33010602011771号