home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / FUNK108A.ZIP / DOS32V30.ZIP / PAL / INCLUDE / PAL_NEW.INC < prev    next >
Encoding:
Text File  |  1995-05-25  |  1.1 KB  |  38 lines

  1.  
  2.  
  3. MAX_FILE_BUFFER_SIZE = 512
  4. FOPEN_MAX              = 50       ; Sets the maximum number of opened streams.
  5.  
  6.  
  7.  
  8. Struc FILE
  9. FileHandle        DW ?            ; DOS file handle
  10. FileFlags        DB ?            ; Flags of opend file;
  11.                                 ;   Bit 0 = Readable
  12.                                 ;   Bit 1 = Writable
  13.                 DB ?            ; Dummy byte to align data
  14. BufSize            DD ?            ; Size of buffer
  15. CurPosition        DD ?            ; Current active position in buffer
  16. FileBufferPtr    DD ?               ; pointer to data transfer buffer
  17. Ends   FILE
  18.  
  19.  
  20.  
  21. PALfunction        getc             ; Get a single character
  22. PALfunction        putc         ; Put a single character
  23. PALfunction        fopen        ; Open file
  24. PALfunction           fclose        ; close file stream
  25. PALfunction           fcloseall    ; close all files
  26. PALfunction           fread
  27. PALfunction           fwrite
  28. PALfunction           ftell        ; get current seek position
  29. PALfunction           fseek
  30. PALfunction           fflush       ; flush buffers to file.
  31. PALfunction           fflushall
  32. PALfunction           ferror
  33. PALfunction           clearerr
  34. PALfunction           rewind        ; seek to beginning
  35. Global C fprintf:Near            ; Prints formatted to a file
  36.  
  37.  
  38.