Close
Close window
CountBytes - 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[Binary]

CountBytes

count the total number of bytes left in a file

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:


Download Help Document

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