To read and write to open files, use the mmioRead and mmioWrite functions. Each of these functions takes an HMMIO file handle, a pointer to a buffer, and a parameter specifying the number of bytes to read or write. The read and write operations are not limited to 64K—the buffer pointers are huge pointers.
See “Example of RIFF File I/O,” later in this chapter, for an example using mmioRead to read from a file.