Functions | |
| DEPRECATED LIBEXPORT int | MioClose (int handle) |
| DEPRECATED LIBEXPORT long | MioGetOpenFileSize (int handle) |
| DEPRECATED LIBEXPORT INT32 | MioGetStr (char *str, INT32 len, FILE *f) |
| DEPRECATED LIBEXPORT int | MioOpen (const MIUNICODE *filename, const char *mode, FILE **fp=0, UINT32 flag=0) |
| DEPRECATED LIBEXPORT INT32 | MioRead (int handle, void *data, INT32 size) |
| DEPRECATED LIBEXPORT INT32 | MioSeek (int handle, INT32 offset, int type) |
| DEPRECATED LIBEXPORT INT32 | MioWrite (int handle, const void *const data, INT32 size) |
| DEPRECATED LIBEXPORT int MioClose | ( | int | handle | ) |
| DEPRECATED LIBEXPORT long MioGetOpenFileSize | ( | int | handle | ) |
Get size of an open file.
| handle | Open file descriptor |
Read a string from a file created on ANY platform.
| str | String to read into |
| len | Maximum length to read - 1 |
| f | File handle |
| DEPRECATED LIBEXPORT int MioOpen | ( | const MIUNICODE * | filename, | |
| const char * | mode, | |||
| FILE ** | fp = 0, |
|||
| UINT32 | flag = 0 | |||
| ) |
Open an existing file.
Modes and equivalent: "r" Read-only "r+" Read-write "w" New file (no CR/LF translation) "wt" New file (with CR/LF translation)
If 'fp' is not NULL, fopen() is used to open the file and the return value is 0 if fopen was sucessful, otherwise an error is returned. The flag is called MioFLAG_NoBuildErrStr. MioOpen will not build an error string if this flag is specified. Used in FindErrStr() in geterrst.c.
| filename | File to open |
| mode | fopen() type mode string |
| fp | File pointer RETURNED, can be NULL |
| flag | Flag |
Read from an open file.
| handle | Handle from MioOpen() |
| data | Buffer to contain data read |
| size | Number of bytes to read |
Seek to a position within an open file.
| handle | Open file handle from MioOpen(). |
| offset | Where to seek to |
| type | SEEK_CUR, SEEK_SET, SEEK_END |
Write to an open file.
| handle | Handle from MioOpen() |
| data | The data to write from |
| size | The amount to write |
1.5.2