Integer return values for many read/write operations.

Value Description
0 Success - no errors encountered
1 The read/write operation failed before it was completed
-1 End-of-file was encountered during read operation