File and Stream Handling
character_count(
S,
N)
- N is the number of characters read/written on
stream S
close(
F)
- close file or stream F
current_input(
S)
- S is the current input stream
current_output(
S)
- S is the current output stream
current_stream(
F,
M,
S)
- S is a stream open on file F in mode M
fileerrors
- enable reporting of file errors
flush_output(
S)
- flush the output buffer for stream S
line_count(
S,
N)
- N is the number of lines read/written on stream S
line_position(
S,
N)
- N is the number of characters read/written on the
current line of S
nofileerrors
- disable reporting of file errors
open(
F,
M,
S)
- file F is opened in mode M returning stream S
open(
F,
M,
O,
S)
- creates a Prolog stream S by opening the file F
in mode M with options O
open_null_stream(
S)
- new output to stream S goes nowhere
prompt(
O,
N)
- queries or changes the prompt string of the current input stream
prompt(
S,
O,
N)
- queries or changes the prompt string of the current input stream or an input stream S
see(
F)
- make file F the current input stream
seeing(
N)
- the current input stream is named N
seek(
S,
O,
M,
N)
- seek to an arbitrary byte position on the
stream S
seen
- close the current input stream
set_input(
S)
- select S as the current input stream
set_output(
S)
- select S as the current output stream
stream_code(
S,
C)
- Converts between Prolog and C representations of a stream
stream_position(
S,
P)
- P is the current position of stream S
stream_position(
S,
O,
N)
- O is the old position of stream S; N is
the new position
tell(
F)
- make file F the current output stream
telling(
N)
- to file N
told
- close the current output stream
ttyflush
- transmit all outstanding terminal output