RL-ARM User's Guide

File I/O Routines

File I/O routines provide methods for reading and writing to files in a Flash file system. File I/O routines are not reentrant.

RoutineDescription
fcloseCloses the file stream.
feofReports whether the end of stream has been reached.
ferrorReports whether there is an error in the file stream.
fflushFlushes the file stream.
fgetcReads a character from the file stream.
fgetsReads a string from the file stream.
fopen
Opens the file stream.
fprintfWrites a formatted string to the file stream.
fputcWrites a character to the file stream.
fputsWrites a string to the file stream.
freadReads a number of bytes from the file stream.
fscanfReads a formatted string from the file stream.
fseekMoves the file stream's in-file pointer to a new location.
ftellGets the current location of the stream's in-file pointer.
fwriteWrites a number of bytes to the file stream.
rewindMoves the file stream's in-file pointer to the beginning of the file.
ungetcStores a character into an input file stream.