up previous next
GetLine    --    read a line of input from an in-stream


Syntax
GetLine(IN: ISTREAM): STRING

Description
This function reads a line of input from the in-stream IN , and returns the result as a string. The string does not contain the end-of-line character.

Currently, if the ISTREAM is ended then the result is a string containing just an end-of-line character.

Example
/**/  Istring := OpenIString("one\ntwo\nthree");
/**/  GetLine(Istring);  -- get the first line
one
/**/  GetLine(Istring);  -- get next line
two
NOTE: this function may not work properly under the GUI Interface.
See Also