Article # 301, added by Geoworks, historical record
| first | previous | index | next | last |

Checking return values from the File routines.



Q. How can I tell when an error occurs in FileRead()?  The docs mention
   that errors will be set "in the thread's error value."  What is that
   and how do I access it?

A. FileRead will return -1 and you can then use ThreadGetError().
   It returns a word with the thread's error value.  It should be
   one of the enum type FileError (file.def) or Error (in file.h).