What is the max number of bytes the ReadFile can read at a time? I am trying to dump data onto the screen and it will go past 64K.
What is the max number of bytes the ReadFile can read at a time? I am trying to dump data onto the screen and it will go past 64K.
Why do you need to read so much at a time? Why can't you just read a chunk at a time, print it out then read some more until you are done? That way you can handle files from 1byte large to 2gigabytes.
By the way, ReadFile is Win32API, not C. Why don't you use a portable function such as fread which works on any C implementation? Otherwise isn't the question more suited in the Windows Programming forum?
Last edited by orbitz; 08-17-2005 at 07:49 PM.
I am using ReadFile for serial communication purposes