Using the basic file I/O services is very similar to using other file I/O services such as the C runtime file I/O services. Files must be opened before they can be read or written. After reading or writing, the file must be closed. You can seek to a specified position in an open file. Use the following functions for basic file I/O:
mmioClose
Closes an opened file.
mmioOpen
Opens a file for reading and/or writing, and returns a handle to the opened file.
mmioRead
Reads a specified number of bytes from an opened file.
mmioSeek
Changes the current position for reading and/or writing in an opened file.
mmioWrite
Writes a specified number of bytes to an opened file.