• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • 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

A.30 library(readutil): Reading lines, streams and files
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(readutil): Reading lines, streams and files
          • read_line_to_codes/2
          • read_line_to_codes/3
          • read_stream_to_codes/2
          • read_stream_to_codes/3
          • read_file_to_codes/3
          • read_file_to_terms/3
    • Packages
Availability::- use_module(library(readutil)).(can be autoloaded)
Sourceread_line_to_codes(+Stream, -Codes)
Read the next line of input from Stream and unify the result with Codes after the line has been read. A line is ended by a newline character or end-of-file. Unlike read_line_to_codes/3, this predicate removes a trailing newline character.

On end-of-file the atom end_of_file is returned. See also at_end_of_stream/[0,1].

ClioPatria (version V3.1.1-21-gb8003bb)