Close
Close window
ReadLine - 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[Text]

ReadLine

read a line from a file

Calling Sequence

ReadLine(file)

Parameters

file

-

file descriptor or filename

Description

The ReadLine(file) command reads a string containing all the characters from the current file position to the first newline character or the end of file. The characters are returned as a string.

If the current file position is the end of the file, a call to ReadLine returns NULL, but ReadLine does not automatically close file. This behavior is different from readline .

Examples

>

FileToolsTextWriteLinetestfile,This is a test

15

(1)
>

FileToolsTextWriteLinetestfile,This is also a test

20

(2)
>

FileToolsTextClosetestfile

>

FileToolsTextReadLinetestfile

This is a test

(3)
>

FileToolsTextReadLinetestfile

This is also a test

(4)
>

FileToolsTextReadLinetestfile

>

FileToolsRemovetestfile


Download Help Document

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