A.44 library(readutil): Read utilities
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(readutil): Read utilities
          • read_line_to_codes/2
          • read_line_to_codes/3
          • read_line_to_string/2
          • read_stream_to_codes/2
          • read_stream_to_codes/3
          • read_file_to_codes/3
          • read_file_to_string/3
          • read_file_to_terms/3
    • Packages
Availability::- use_module(library(readutil)).(can be autoloaded)
Source[det]read_line_to_string(+Stream, -String)
Read the next line from Stream into String. String does not contain the line terminator. String is unified with the atom end_of_file if the end of the file is reached.
See also
read_string/5 can be used to read lines with separated records without creating intermediate strings.