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.
In reply to Re: bin mode file copy
by Bloodnok
in thread bin mode file copy
by smanicka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |