Page 1 of 1

file read and write.

Posted: 14 Apr 2017 9:52
by ashok dhokare
Write a Visual Prolog Console Application which will save Person information ( Age, Name, Height, Gender ) in file and read from file.

Posted: 14 Apr 2017 10:18
by Thomas Linder Puls
You should look at the turorials.

Re:

Posted: 14 Apr 2017 10:34
by ashok dhokare
not find file handling concept please send link

Posted: 14 Apr 2017 15:56
by Thomas Linder Puls
In the tutorial Fundamental Visual Prolog.

There is code for reading in a family database using file::consult

Code: Select all

    class predicates         reconsult : (string FileName).     clauses         reconsult(FileName) :-             retractFactDB(familyDB),             file::consult(FileName, familyDB).
The predicate file::save performs the opposite operation.