M
Mike Robinson
The Win32 SDK had a great function called "ReadFile" that was a model of
simplicity. Now I'm starting to use the new .NET Framework, which is
supposed to be an improvement but the file reading is (as far as I can tell)
nowhere near as good.
FileStream fs=new FileStream(FName);
fs.BeginRead (Buffer,0,thisFile.Length,0,0);
The last two arguments (the two closing zeroes) are for "AsyncCallback" and
"stateObject." Microsoft's documentation does not clarify what these should
be. Can anybody clear this up?
I would like to read an entire (small) file of integers into a buffer in one
read. Can that be done? MSoft, you need to do more work on file reading,
it's not very useful in its current state.
Thanks very much for any help.
simplicity. Now I'm starting to use the new .NET Framework, which is
supposed to be an improvement but the file reading is (as far as I can tell)
nowhere near as good.
FileStream fs=new FileStream(FName);
fs.BeginRead (Buffer,0,thisFile.Length,0,0);
The last two arguments (the two closing zeroes) are for "AsyncCallback" and
"stateObject." Microsoft's documentation does not clarify what these should
be. Can anybody clear this up?
I would like to read an entire (small) file of integers into a buffer in one
read. Can that be done? MSoft, you need to do more work on file reading,
it's not very useful in its current state.
Thanks very much for any help.