Reads a given number of bytes from an open file.
|file ||the file to read from |
|buffer ||the location where the read bytes should be stored |
|bytes ||the number of bytes to read from the file. |
- the number of bytes successfully read (this can be less than the number requested), zero to mark the end of file, or less than zero to indicate an error.
- See also:
- open(), write()