Package org.projog.core.predicate.builtin.io
package org.projog.core.predicate.builtin.io
Predicates for system input and output with the file system.
-
ClassesClassDescription
close(X)- closes a stream.current_input(X)- match a term to the current input stream.current_output(X)- match a term to the current output stream.get_char(X)- reads the next character from the input stream.get_code(X)- reads the next character from the input stream.nl- outputs a new line character.op(X,Y,Z)open(X,Y,Z)- opens a file.put_char(X)- writes a character.read(X)- reads a term from the input stream.see(X)- opens a file and sets it as the current input stream.seen- closes the current input stream.set_input(X)- sets the current input.set_output(X)- sets the current output.tab(X)- writesXnumber of spaces to the output stream.tell(X)- opens a file and sets it as the current output stream.told- closes the current output stream.write(X)- writes a term to the output stream.write_canonical(X)- writes a term to the output stream.writef(X,Y)- writes formatted text to the output stream.