Close
Close window
Close - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

FileTools[Text]

Close

close a text file

Calling Sequence

Close(file, file2, ...)

Parameters

file1, file2, ...

-

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

Description

The Close(file) command closes the specified file, which is assumed to have been opened implicitly by a FileTools[Text] 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 using the quit, done, or stop command, all open files are automatically closed.

Closing a file that is not open raises an error.

Examples

>

testfileFileToolsJoinPathFileToolsTemporaryDirectory,test

testfile/tmp/test

(1)
>

FileToolsTextOpentestfile

0

(2)
>

FileToolsTextWriteStringtestfile,This is a test\n

15

(3)
>

FileToolsTextClosetestfile


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /