FileTools[Text][ReadFile] - read all lines from a file
|
Calling Sequence
|
|
ReadFile(file)
|
|
Parameters
|
|
file
|
-
|
file descriptor or filename
|
|
|
|
|
Description
|
|
•
|
The ReadFile(file) command reads a string containing all the characters in the file. For files previously opened, the result string contains all the characters from the current file position to the end of file. The characters are returned as a string.
|
•
|
If the file is not open prior to calling ReadFile then it will be closed before returning. If the file was already open it will not be closed.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
>
|
|
|
|
Download Help Document
Was this information helpful?