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

15 Memory files
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog C-library
        • Memory files
          • new_memory_file/1
          • free_memory_file/1
          • open_memory_file/3
          • open_memory_file/4
          • size_memory_file/2
          • size_memory_file/3
          • atom_to_memory_file/2
          • insert_memory_file/3
          • delete_memory_file/3
          • memory_file_to_atom/2
          • memory_file_to_atom/3
          • memory_file_to_codes/2
          • memory_file_to_codes/3
          • memory_file_to_string/2
          • memory_file_to_string/3
          • memory_file_substring/5
          • memory_file_line_position/4
Availability::- use_module(library(memfile)).(can be autoloaded)
open_memory_file(+Handle, +Mode, -Stream)
Open the memory-file. Mode is one of read, write, append, update or insert. The resulting Stream must be closed using close/1. When opened for update or insert, the current location is initialized at the start of the data and can be modified using seek/2 or set_stream_position/2. In update mode, existing content is replaced, while the size is enlarged after hitting the end of the data. In insert mode, the new data is inserted at the current point.
ClioPatria (version V3.1.1-40-g9d9e003)