I’m using: SWI-Prolog version 8.1.9.
Is there a simple way to temporarily redirect or echo (either is fine) all
nl activity to a disk file? If not, what are the SWI-Prolog equivalents for the usual fopen/fwrite/fclose/etc. statements in other languages? I need to write a bunch of text to a file and I’ve never done file I/O in SWI-Prolog. I skimmed the manual but all I found so far is the
file predicate, and I’m not sure how to use that to do file I/O.
If there’s a section in the manual that deals with this, please link me.