A.35 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_file_to_terms(+Spec, -Terms, +Options)
Read a file to a list of Prolog terms (see read/1). Spec is a file specification for absolute_file_name/3. Terms is the resulting list of Prolog terms. Options is a list of options for absolute_file_name/3 and open/4. In addition, the option tail(Tail) is defined, forming a difference-list.