日期:2014-05-18 浏览次数:21163 次
string fullName = openFileDialog.FileName;
using (FileStream fs = File.OpenRead(fullName)) {
int offset = 0;
byte[] buffer = new byte[1024];
int count = 0;
while ((count = fs.Read(buffer, offset, buffer.Length)) > 0) {
//进不来这里,因为count总是0???
offset += count;
}
}