DeCompressFileΒΆ
DeCompressFile decompress a file that was compressed by CompressFile.
-
bool = DeCompressFile(ssFilename)
-
bool = DeCompressFile(ssFilename, ssFilenameOut)
Return Value
bool is TRUE (1) if the copy could be created, otherwise FALSE (0).
Parameters
-
ssFilename
ssFilename is the filename without the extension.
If
DeCompressFile()
is invoked with one parameter, ssFilename is the file name without extension. The file must have the extension.z
.If
DeCompressFile()
is invoked with two parameters, ssFilename must be the complete file name with extension.
-
ssFilenameOut
ssFilenameOut is the name of the decompressed file.
Comment
This function uses the zlib-Library (http://www.gzip.org/zlib/). Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler.
Example
The following function call decompresses the file d:\Test.dat.Z
.
The file d:\Test.dat
will be created.
DeCompressFile("d:\Test.dat")
The following call uncompresses the file d:\Test.tar.gz
. The file
Test.tar
is created.
DeCompressFile("d:\Test.tar.gz", "d:\Test.tar")
History
Version | Description |
---|---|
5.14.0 | Invokation with two parameters added. |
3.0 | New. |
See also
id-1211081