WWP_DATA 1.0 unit (beta) for Turbo Pascal 6.0, 7.0 Copyright (c) 1995-96 by Piotr Warezak and Rafal Wierzbicki 6 January 1996 Lodz, Poland All Rights Reserved Here is a list of all types, function and procedures implemented in the WWP_DATA 1.0 unit: type file_ww; type of WWPACK data files. Use this type insted of 'file' type! function ioresult_ww:byte; this function returns the status of last I/O operation on the WWPACKed data file. Standard I/O codes: please see the Turbo Pascal documentation. Extended I/O codes: 250 - the file is not a WWPACKed data file. 251 - unrecognized version of WWPACKed data file. Extended I/O code may be set while opening the file (reset_ww function). In case of any Extended I/O errors the file will not be open! procedure assign_ww(var f:file_ww;filename:string); this procedure assigns the name of a file to the file_ww variable. Please use it to initialize the file you want to read. procedure reset_ww(var f:file_ww); opens assigned file for reading. procedure close_ww(var f:file_ww); closes an opened file. procedure seek_ww(var f:file_ww;offset:longint); sets the current position of a file to 'offset' value. See filepos_ww function. function filesize_ww(var f:file_ww):longint; returns the size of a compressed file. Warning: this function returns the size of a data stored in the file, not the real file size! That means, that the value returned with this function is bigger than the real file size! function filepos_ww(var f:file_ww):longint; returns the current position of a file. procedure blockread_ww(var f:file_ww;var buf;to_read:word;var result:word); this procedure reads 'to_read' bytes to the 'buf' from 'f' file. After operation the 'result' contains number of read bytes. WWP_DATA unit is saved in two files. Please choose one: WWP_DATA.TPU for Turbo Pascal 7.0 WWP_DATA.T60 for Turbo Pascal 6.0 (rename to WWP_DATA.TPU) End of the documentation file.