CountIntegers - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


FileTools[Text]

  

CountIntegers

  

count the number of integers from current file position to the end of the file

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CountIntegers(file)

Parameters

file

-

file descriptor or filename

Description

• 

The CountIntegers(file) command counts the number of integers from the current position in file to the end of file.

• 

The CountIntegers function returns the number of times ReadNextInteger can be called before the end of the file is reached.

• 

An error is raised if file is not a valid descriptor or if it is the name of a file that does not exist.

Examples

FileToolsTextWriteStringfoo,1\n2\n3\nabcd 1234 ege\n\n4\n5

24

(1)

FileToolsTextClosefoo:

FileToolsTextCountIntegersfoo

6

(2)

FileToolsRemovefoo:

See Also

FileTools[Position]

FileTools[Remove]

FileTools[Text]

FileTools[Text][Close]

FileTools[Text][CountCharacters]

FileTools[Text][CountFloats]

FileTools[Text][CountLines]

FileTools[Text][ReadNextInteger]

FileTools[Text][WriteString]