FileTools[Text] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

FileTools[Text]

  

CountFloats

  

count the number of floating-point numbers from current file position to the end of the file

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CountFloats(file)

Parameters

file

-

file descriptor or filename

Description

• 

The CountFloats(file) command counts the number of floating-point numbers from the current position in file to the end of file.

• 

The CountFloats function returns the number of times ReadNextFloat 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

FileTools[Text][WriteString]foo,1 2 3 abcd 1234 ege 4 5

24

(1)

FileTools[Text][Close]foo:

FileTools[Text][CountFloats]foo

6

(2)

FileTools[Remove]foo:

See Also

FileTools[Position]

FileTools[Remove]

FileTools[Text]

FileTools[Text][Close]

FileTools[Text][CountCharacters]

FileTools[Text][CountIntegers]

FileTools[Text][CountLines]

FileTools[Text][ReadNextFloat]

FileTools[Text][WriteString]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam