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. The function IsAtEOF says whether the end of input has been reached.

Example
/**/  Istring := OpenIString("one\ntwo");
/**/  GetLine(Istring);  -- get the first line
one
/**/  GetLine(Istring);  -- get next line
two
/**/  IsAtEOF(Istring);
true

See Also