Reading input from files PROLOG
--------------------------------------------------------------------------------
Hello,
I would like to know the best way of reading and writing to more than one file at a time. What my program does is it consults a file for patterns and uses them for output to the screen. In some cases I will need to create another file for a new user whereby I will still need the pattern file open to give responses to screen but to also write pattern matches to the users file.
What would be the best approach? Is it possible to consult two files at once and could someone explain the built-in load and save functions in prolog.
All help greatly appreciated.
|