FileTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

FileTools

  

Size

  

obtain size of a file in bytes

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Size(file)

Parameters

file

-

filename or the file descriptor of an open file

Description

• 

The Size(file) command returns the size of a file in bytes.

• 

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

Examples

FileToolsTextWriteFilefile,data

4

(1)

FileToolsSizefile

4

(2)

FileToolsRemovefile

See Also

file_types

FileTools

FileTools[Exists]

FileTools[IsDirectory]

FileTools[IsExecutable]

FileTools[IsReadable]

FileTools[IsWritable]

FileTools[ModificationTime]

FileTools[Remove]

FileTools[Status]

FileTools[Text][Close]

FileTools[Text][WriteString]

IO_errors