Aura
File Access Interface (filefunc.asm)
_OpenFile
- Inputs: Filename=filename to open; WriteTo=1:Create for writing, 0:Open
for reading
- Outputs: EAX=DOS file handle (-1 on error)
Opens a file for either reading or writing.
_CloseFile
- Inputs: Handle=DOS file handle to close
- Outputs: None
Closes file opened by _OpenFile.
_ReadFile
- Inputs: Handle=DOS file handle to read from; *Buffer=offset in BufSeg to
read into; Count=number of bytes to read from file
- Outputs: EAX=number of bytes read from file
Reads from file, transferring 32k at a time through the transfer buffer.
_WriteFile
- Inputs: Handle=DOS file handle to write to; *Buffer=offset in BufSeg to
read from; Count=number of bytes to write to file
- Outputs: EAX=number of bytes written to file
Writes to file, transferring 32k at a time through the transfer buffer.