ReadLine
Usage:
ReadLine(Handle)
Description:
The ReadLine reads a line from the current file position and returns the text. The file position is then advanced to the end of the line. A line is any amount of text, terminated by the CRLF (Carriage Return, Line Feed) characters. This is used to read in data from files readable by humans, such as .txt files.
The Handle parameter is the file handle returned by ReadFile, WriteFile or OpenFile.
Example:
Function Main()
F = ReadFile("Test.txt")
FileData = ReadLine(F)
Output(Actor(), "First line text: " $+ FileData)
CloseFile(F)
Return()
End Function
Comments (0)
You don't have permission to comment on this page.