Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfpackfile()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfPackFile()
Compress/Expand a file
------------------------------------------------------------------------------
Syntax:

     dfPackFile( <cSource>, <cOutPut>, <cPar>,
           [<bWhile>] ) --> lResult

Parameters:

     <cSource>  Input file
     <cOutPut>  Output file
     <cPar>     Modality
     +-------------------------------------------------------------+
     | Modality         | Description                              |
     |------------------+------------------------------------------|
     | MPACKER_COMPRESS | Compress file                            |
     | MPACKER_EXPAND   | Expand file                              |
     +-------------------------------------------------------------+
     <bWhile>   Codeblock to call diring the compression. Receive like
     parameter the current position and the length of the file

Returns:

     <lResult>   If .T. if there aren't problem during the operation

Description:

     This function is usefull to compress/expand the .DBF files in witch
     the compression is of 60%

Example:

     // Compress
     dfPackFile( "c:\autoexec.bat", "new",;
                MPACKER_COMPRESS )
     
     // Expand
     dfPackFile( "new", "newfile",;
                MPACKER_EXPAND )

See also:

     dfPairCmp()

See Also: dfPairCmp()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson