| FGetC | Function (ROM Call 0x3DB)

AMS 2.00 or higher | files.h

unsigned short FGetC (FILES *fsPtr);

Read a byte from an open file.

FGetC reads a byte from the open file fsPtr (which may be opened in either READ or WRITE mode) at the current file position and returns the byte, or FS_EOF if the end of file was reached.
fsPtr is a pointer to a FILES structure previously opened with FOpen.
Note that the FILES structure pointed to by fsPtr must have been opened with FOpen.
FGetC returns the next byte in the file, or FS_EOF if the end of file has been reached.

Used by: FRead

See also: FOpen, FPutC, FRead, FSetPos