Basic
Services
Using the
basic I/O services is similar to using the run-time file I/O services of the C
run-time library. Files must be opened before they can be read or written.
After reading or writing, the file must be closed. You can also change the
current read or write location within an open file.
Before you
begin any I/O operations to a file, you must open the file by using the mmioOpen
Note An HMMIO
file handle is not a standard file handle. Do not use HMMIO file handles
with Win32 or C run-time file I/O functions.
When you use mmioOpen
You can read
and write files by using the mmioRead1MNLDQQ functions respectively. The next read or
write operation occurs at the current file position or file pointer in a file.
The current file position is advanced each time a file is read or written.
You can also
change the current file position by using the mmioSeek
There are
flags you can use with the mmioOpen function for operations beyond basic
file I/O. By specifying an MMIOINFO