FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


file read and write.

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
ashok dhokare



india
Joined: 09 Mar 2017
Posts: 3

PostPosted: 14 Apr 2017 9:52    Post subject: file read and write. Reply with quote

Write a Visual Prolog Console Application which will save Person information ( Age, Name, Height, Gender ) in file and read from file.
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 14 Apr 2017 10:18    Post subject: Reply with quote

You should look at the turorials.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
ashok dhokare



india
Joined: 09 Mar 2017
Posts: 3

PostPosted: 14 Apr 2017 10:34    Post subject: Re: Reply with quote

not find file handling concept please send link
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 14 Apr 2017 15:56    Post subject: Reply with quote

In the tutorial Fundamental Visual Prolog.

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

    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
Prolog Development Center
Back to top
View user's profile Send private message
mdosnov2016



Greece
Joined: 19 Nov 2016
Posts: 34

PostPosted: 21 Oct 2017 17:45    Post subject: Reply with quote

Dear Thomas,

file::consult
unfortunately doesn't work for me for big databases.

is there an alternative?

Michael

_________________
PrologUser
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum