TextReader.Read
Syntax:
Parameters:
<LineSize> (optional)
Size of line to be returned. If the parameter is not specified, the text file will be read to the end.
Returned value:
When the file to be read is completed, Undefined is returned.
Description:
Availability:
Note:
Example:
Text = New TextReader("d:\win.txt", TextEncoding.ANSI); Str = Text.Read(10); While Str <> Undefined Do // read file by 10 characters Message(Str); Str = Text.Read(10); EndDo; |