+-, Normal-+ >>-LINES(--+------+-----+----------+---)----------------------->< +-name-+ +-, Count--+
1
if any data remains between the current read position and the end of the character input stream name. It returns 0
if no data remains. In effect, LINES reports whether a read action that CHARIN (see Section 7.4.14, “CHARIN (Character Input)”) or LINEIN (see Section 7.4.39, “LINEIN (Line Input)”) performs will succeed. (To understand the input and output functions, see Chapter 14, Input and Output Streams.)
Example 7.55. Builtin function LINES
LINES(myfile) -> 0 /* at end of the file */ LINES() -> 1 /* data remains in the */ /* default input stream */ /* STDIN: */
Note