close a previously opened compressed file - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Manipulation : FileTools : FileTools/Compressed/Close

FileTools[Compressed][Close] - close a previously opened compressed file

Calling Sequence

Close(file)

Parameters

file

-

string, string in string, or integer file descriptor

Description

• 

The Close command closes a file that has been opened with FileTools[Compressed][Open].

Examples

file := FileTools[TemporaryFilename](cat(FileTools[TemporaryDirectory](),kernelopts(dirsep),"GZtest-"));

file:=/mnt/tmpfs/mpldoc_slot1/mpldoc1/GZtest-bx70dpPu

(1)

fd := FileTools[Compressed][Open](file);

fd:=35490128

(2)

FileTools[Compressed][Close](fd);

0

(3)

FileTools[Compressed][Open](file);

34856288

(4)

FileTools[Compressed][Close](file);

0

(5)

FileTools[Compressed][Close](file);

Error, (in FileTools:-Compressed:-Close) invalid input: /mnt/tmpfs/mpldoc_slot1/mpldoc1/GZtest-bx70dpPu does not refer to an open file

See Also

FileTools[Compressed], FileTools[Compressed][Open], FileTools[Compressed][Read], FileTools[Compressed][Write], FileTools[Remove]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam