INPUT and OUTPUT in Prolog ch.2
Posted by madmathc pada Desember 22, 2009
Now we continue to explain other numbers in Practical Exercise INPUT and OUTPUT in Prolog
(2) First, type this in notepadand save it.
Then type this to make rule for Prolog. Save it ang don’t forget to add .pl at the end of your filename.
Next consult it. After that, type this…
and press Enter
Then automatically out.txt appears… Open it. This is the layout…
(3) Type it in testa.txt
Type this rule. Save it and give name readfile.pl
After that, consult it. Next type this…
Then the output is
This session will be continued at next post. thank for coming…:-)