[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
PrologOpenappend
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
PrologOpenappend
(Prolog) openappend
A common File I/O command to open a file to write to. If the file does not exist, it is created. If the file already exists, the data is kept intact and new data is added to it. If you want to clear the file first, use openwrite.
% Visual Prolog 5.2
DOMAINS
FILE = myFile
GOAL
openappend(myFile,"d:\PrologTest.txt"),
writedevice(myFile),
write("My first Prolog file output!\n"),
writedevice(myFile),
closefile(myFile).
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
