determine if the user has read permission for a file - Maple Help

Online Help

All Products    Maple    MapleSim


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

FileTools[IsReadable] - determine if the user has read permission for a file

Calling Sequence

IsReadable(file)

Parameters

file

-

filename or the file descriptor of an open file

Description

• 

The IsReadable(file) command returns true if the user has read permission for the specified file.  If the user does not, false is returned.

• 

If the file does not exist or an invalid file descriptor is passed, an exception is raised.

Examples

FileTools[Text]WriteStringfile,data:

FileTools[Text]Closefile:

FileTools[IsReadable]file

true

(1)

FileTools[Remove]file

See Also

file_types, FileTools, FileTools[Exists], FileTools[IsExecutable], FileTools[IsWritable], FileTools[ModificationTime], FileTools[Remove], FileTools[Size], FileTools[Status], FileTools[Text][Close], FileTools[Text][WriteString], IO_errors


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