TextReader.ReadLine

Syntax:

ReadLine(<Splitter>)

Parameters:

<Splitter> (optional)

Type: String.
Line splitter. If you have not typed in a line splitter, then when you open a file, it will match the one in your settings.
Default value: LF.

Returned value:

Type: String; Undefined.
When the file to be read is completed, Undefined is returned.

Description:

Computes a line of text delimited by white-space character.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

A zero-length line is not a flag for the end of the file.

Example:

Text = New TextReader("d:\win.txt", TextEncoding.ANSI);
Str = Text.ReadLine();
While 
Str <> Undefined Do // Lines are read to the line feed character
    Message(Str);
    Str = Text.ReadLine();
EndDo
;


    

1C:Enterprise Developer's Community