home *** CD-ROM | disk | FTP | other *** search
/ Computer Installation Guide - Dragon Clan Series / CD2.iso / ZIP / WWPACK / WWP304 / PASCAL / WWP_DATA.DOC < prev    next >
Encoding:
Text File  |  1996-01-05  |  2.1 KB  |  64 lines

  1.  
  2.  
  3.           WWP_DATA 1.0 unit (beta)          for Turbo Pascal 6.0, 7.0
  4.  
  5.           Copyright (c) 1995-96 by Piotr Warezak and Rafal Wierzbicki
  6.  
  7.           6 January 1996       Lodz, Poland       All Rights Reserved
  8.  
  9.  
  10.  
  11.    Here is a list of all types, function and procedures implemented in the
  12. WWP_DATA 1.0 unit:
  13.  
  14. type file_ww;
  15.      type of WWPACK data files.
  16.      Use this type insted of 'file' type!
  17.  
  18. function ioresult_ww:byte;
  19.      this function returns the status of last I/O operation on the WWPACKed
  20.      data file.
  21.      Standard I/O codes: please see the Turbo Pascal documentation.
  22.      Extended I/O codes:
  23.        250  -  the file is not a WWPACKed data file.
  24.        251  -  unrecognized version of WWPACKed data file.
  25.      Extended I/O code may be set while opening the file (reset_ww function).
  26.        In case of any Extended I/O errors the file will not be open!
  27.  
  28. procedure assign_ww(var f:file_ww;filename:string);
  29.      this procedure assigns the name of a file to the file_ww variable.
  30.      Please use it to initialize the file you want to read.
  31.  
  32. procedure reset_ww(var f:file_ww);
  33.      opens assigned file for reading.
  34.  
  35. procedure close_ww(var f:file_ww);
  36.      closes an opened file.
  37.  
  38. procedure seek_ww(var f:file_ww;offset:longint);
  39.      sets the current position of a file to 'offset' value.
  40.      See filepos_ww function.
  41.  
  42. function filesize_ww(var f:file_ww):longint;
  43.      returns the size of a compressed file.
  44.      Warning: this function returns the size of a data stored in the file,
  45.               not the real file size! That means, that the value returned with
  46.               this function is bigger than the real file size!
  47.  
  48. function filepos_ww(var f:file_ww):longint;
  49.      returns the current position of a file.
  50.  
  51. procedure blockread_ww(var f:file_ww;var buf;to_read:word;var result:word);
  52.      this procedure reads 'to_read' bytes to the 'buf' from 'f' file.
  53.      After operation the 'result' contains number of read bytes.
  54.  
  55.  
  56.  
  57. WWP_DATA unit is saved in two files. Please choose one:
  58.  
  59.   WWP_DATA.TPU for Turbo Pascal 7.0
  60.   WWP_DATA.T60 for Turbo Pascal 6.0  (rename to WWP_DATA.TPU)
  61.  
  62.  
  63. End of the documentation file.
  64.