back to Table of Contents


ReadBufLine$ (function)

This function will return the remaining part of the current line, ie. it reads data from the specified buffer starting at the current buffer position (which may be anywhere in the line) and continuing until it finds the next line break (according to the active line endings logic of the buffer) or until the buffer end, if no more line breaks exist. The operation is in that very similar to LINE INPUT when reading from text files.

The current buffer position is updated accordingly and is on the first byte behind the line break (ie. at the start of the next line) after the call. Hence, sequential reading is easily possible with subsequent calls. You may use EndOfBuf() to check, whether the buffer end is reached or not.


SYNTAX:

text$ = ReadBufLine$ (buf$())

INPUTS:

buf$() (STRING array)


RESULT:

text$ (STRING)


NOTES:


back to Table of Contents