home *** CD-ROM | disk | FTP | other *** search
-
-
- MAX_FILE_BUFFER_SIZE = 512
- FOPEN_MAX = 50 ; Sets the maximum number of opened streams.
-
-
-
- Struc FILE
- FileHandle DW ? ; DOS file handle
- FileFlags DB ? ; Flags of opend file;
- ; Bit 0 = Readable
- ; Bit 1 = Writable
- DB ? ; Dummy byte to align data
- BufSize DD ? ; Size of buffer
- CurPosition DD ? ; Current active position in buffer
- FileBufferPtr DD ? ; pointer to data transfer buffer
- Ends FILE
-
-
-
- PALfunction getc ; Get a single character
- PALfunction putc ; Put a single character
- PALfunction fopen ; Open file
- PALfunction fclose ; close file stream
- PALfunction fcloseall ; close all files
- PALfunction fread
- PALfunction fwrite
- PALfunction ftell ; get current seek position
- PALfunction fseek
- PALfunction fflush ; flush buffers to file.
- PALfunction fflushall
- PALfunction ferror
- PALfunction clearerr
- PALfunction rewind ; seek to beginning
- Global C fprintf:Near ; Prints formatted to a file
-
-
-