Package org.projog.core.predicate.builtin.io
Predicates for system input and output with the file system.
-
Class Summary Class Description Close close(X)- closes a stream.CurrentInput current_input(X)- match a term to the current input stream.CurrentOutput current_output(X)- match a term to the current output stream.GetChar get_char(X)- reads the next character from the input stream.GetCode get_code(X)- reads the next character from the input stream.NewLine nl- outputs a new line character.Op op(X,Y,Z)Open open(X,Y,Z)- opens a file.PutChar put_char(X)- writes a character.Read read(X)- reads a term from the input stream.See see(X)- opens a file and sets it as the current input stream.Seen seen- closes the current input stream.SetInput set_input(X)- sets the current input.SetOutput set_output(X)- sets the current output.Tab tab(X)- writesXnumber of spaces to the output stream.Tell tell(X)- opens a file and sets it as the current output stream.Told told- closes the current output stream.Write write(X)- writes a term to the output stream.WriteCanonical write_canonical(X)- writes a term to the output stream.Writef writef(X,Y)- writes formatted text to the output stream.Writef.Formatter