skip_line/[0,1]

Synopsis

skip_line

skip_line(+Stream)

Skip the remaining input characters on the current line on the current input stream, or on Stream.

Arguments


Stream stream_object
a valid Prolog input stream

Exceptions

Stream errors (see ref-iou-sfh-est), plus:


existence_error
Trying to read beyond end of Stream.

Comments

Coding with skip_line/[0,1] and at_end_of_line/[0,1] to handle line input is more portable among different operating systems than checking end of line by the input character code.

See Also

get0/[1,2], at_end_of_line/[0,1], at_end_of_file/[0,1].