FileTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

FileTools

 IsOpen
 query if a filename or description is open

 Calling Sequence IsOpen(file)

Parameters

 file - filename or descriptor

Description

 • The IsOpen(file) command searches the internal file table to determine if file refers to an open file.

Examples

 > $\mathrm{FileTools}[\mathrm{Text}][\mathrm{Open}]\left(\mathrm{testFile}\right):$
 > $\mathrm{FileTools}[\mathrm{IsOpen}]\left(\mathrm{testFile}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{FileTools}[\mathrm{Remove}]\left(\mathrm{testFile}\right):$
 > $\mathrm{FileTools}[\mathrm{IsOpen}]\left(\mathrm{testFile}\right)$
 ${\mathrm{false}}$ (2)

 See Also

## Was this information helpful?

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