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/CountBytes

FileTools[Binary]

  

CountBytes

  

count the total number of bytes left in a file

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CountBytes(file)

Parameters

file

-

file descriptor or filename

Description

• 

The CountBytes(file) command counts the number of bytes from file's current position to the end of the file.

• 

An error is raised if file is not a valid descriptor or if the filename does not exist.

Examples

FileToolsBinaryWritefoo,integer1,1,2,3,4,5,6,7,8,9,0:

FileToolsBinaryClosefoo:

FileToolsBinaryCountBytesfoo

10

(1)

FileToolsPositionfoo,4:

FileToolsBinaryCountBytesfoo

6

(2)

FileToolsRemovefoo:

See Also

file

FileTools[Binary]

FileTools[Binary][Close]

FileTools[Binary][Write]

FileTools[Position]

FileTools[Remove]

FileTools[Text][CountCharacters]

FileTools[Text][CountLines]

IO_errors