FileTools[Binary]
CountBytes
count the total number of bytes left in a file
Calling Sequence
Parameters
Description
Examples
CountBytes(file)
file
-
file descriptor or filename
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.
FileToolsBinaryWrite⁡foo,integer1,1,2,3,4,5,6,7,8,9,0:
FileToolsBinaryClose⁡foo:
FileToolsBinaryCountBytes⁡foo
10
FileToolsPosition⁡foo,4:
6
FileToolsRemove⁡foo:
See Also
FileTools[Binary][Close]
FileTools[Binary][Write]
FileTools[Position]
FileTools[Remove]
FileTools[Text][CountCharacters]
FileTools[Text][CountLines]
IO_errors
Download Help Document