Quote:

And if you are going to enhance do it right so I suggested not to limit yourself to only read the entire file but optionally specify a buffer in case you only want a part of a (binary) file. A standard function in most other languages.




At the risk of my repeating myself that is exactly what it does.

Re-read the pseudo-code, and if you still don't understand how it does partial file reads send me a PM and I'll explain off-line.