Discussions related to Visual Prolog
ashok dhokare
Posts: 3
Joined: 9 Mar 2017 18:17

file read and write.

Unread post by ashok dhokare »

Write a Visual Prolog Console Application which will save Person information ( Age, Name, Height, Gender ) in file and read from file.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

You should look at the turorials.
Regards Thomas Linder Puls
PDC
ashok dhokare
Posts: 3
Joined: 9 Mar 2017 18:17

Re:

Unread post by ashok dhokare »

not find file handling concept please send link
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post 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.
Regards Thomas Linder Puls
PDC
Post Reply