in reply to bin mode file copy
However, IMO, what the aforementioned doc doesn't explicitly tell you is that (if LENGTH is specified) the call to read() should attempt to read no more than LENGTH bytes before returning i.e if the number of bytes successfully read from the file is less than LENGTH bytes, then the call will still be deemed successful (the call always returns the number of bytes actually read - which is stated in the doc).
Update
Wording modified in (what I think is) in line with ikegami's observation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: bin mode file copy
by ikegami (Patriarch) on Mar 16, 2009 at 16:48 UTC |