read a regular file and write it out as a compressed file
string, string in string, or integer file handle
string or list of strings
ReadWriteFile is an all-in-one command to open a file, read all its data, compress, and write it out to another file. This is done in small blocks, so the input data does not have to be read into the memory all at once.
When target_filename is a zip file, the source_filename can be a directory. In this case, the entire contents of that directory plus all subdirectories, are added to the zip archive.
The in-zip file names are copied to match the on-disk filenames minus the base directory path.
Since gzip format files cannot contain multiple sub-files, source_filename must be a single string.
FileTools:-Compressed:-Read("schema/worksheet/worksheet.xsd" in zipfile, string, 250);
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================= -->
<!-- XML Schema for Maple Worksheets
The FileTools[Compressed][ReadWriteFile] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)