-
- Posts: 3
- Joined: 9 Mar 2017 18:17
file read and write.
Write a Visual Prolog Console Application which will save Person information ( Age, Name, Height, Gender ) in file and read from file.
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
In the tutorial Fundamental Visual Prolog.
There is code for reading in a family database using file::consult
The predicate file::save performs the opposite operation.
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).
Regards Thomas Linder Puls
PDC
PDC