newbie question:file reading operation
From: chenyu (chenyu468_at_21cn.com)
Date: 01/17/04
- Previous message: chenyu: "newbie question: swi,built-in predicate,get"
- Next in thread: Pierpaolo BERNARDI: "Re: newbie question:file reading operation"
- Reply: Pierpaolo BERNARDI: "Re: newbie question:file reading operation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Jan 2004 21:40:32 -0800
Hello everyone,
I have faced problem in file reading.(swi-prolog 5.2.9).
49 ?- X='c:\\eee.txt',see(X),seeing(X),read(S),display(S),seen(X),!
| ddd %<==========I don't know why prolog ask me to input, it should read
%from file "c:\\eee.txt'
| .
ERROR: Syntax error: Operator expected
ERROR: X='c:\\eee.txt',see(X),seeing(X),read(S),display(S),seen(X),!
ERROR: ** h
Could I use
47 ?- see(user).
48 ?- tell(user).
at any time when I want to switch the input/output back to keyboard?
Thank you for your attention.
kind regards/chenyu
- Previous message: chenyu: "newbie question: swi,built-in predicate,get"
- Next in thread: Pierpaolo BERNARDI: "Re: newbie question:file reading operation"
- Reply: Pierpaolo BERNARDI: "Re: newbie question:file reading operation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]