FileTools[Binary] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

FileTools[Binary]

  

Close

  

close a binary file

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Close(file1, file2, ...)

Parameters

file1, file2, ...

-

one or more names or file descriptors of open files to be closed

Description

• 

The Close(file1, file2, ...) command closes the specified file, which is assumed to have been opened either implicitly by a FileTools[Binary] function or by Open.

• 

The Close function does not return anything.

• 

Closing a file ensures that all data is written to disk.

• 

When exiting Maple by the quit, done, or stop command, all open files are automatically closed.

• 

Closing a file that is not open raises an error.

Examples

fdFileToolsBinaryOpentestfile

fd0

(1)

FileToolsBinaryWritefd,integer4,1,2,3

12

(2)

FileToolsBinaryClosefd

See Also

file

file_types

FileTools[Binary]

FileTools[Binary][Open]

FileTools[Binary][Write]

IO_errors