• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.17 Input and output
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Input and output
          • Predefined stream aliases
          • ISO Input and Output Streams
          • Edinburgh-style I/O
          • Switching between Edinburgh and ISO I/O
            • set_input/1
            • set_output/1
            • current_input/1
            • current_output/1
          • Adding IRI schemas
          • Write onto atoms, code-lists, etc.
          • Fast binary term I/O
    • Packages

4.17.4 Switching between Edinburgh and ISO I/O

The predicates below can be used for switching between the implicit and the explicit stream-based I/O predicates.

[ISO]set_input(+Stream)
Set the current input stream to become Stream. Thus, open(file, read, Stream), set_input(Stream) is equivalent to see(file).
[ISO]set_output(+Stream)
Set the current output stream to become Stream. See also with_output_to/2.
[ISO]current_input(-Stream)
Get the current input stream. Useful for getting access to the status predicates associated with streams.
[ISO]current_output(-Stream)
Get the current output stream.

ClioPatria (version V3.1.1-51-ga0b30a5)