newbie question:file reading operation

From: chenyu (chenyu468_at_21cn.com)
Date: 01/17/04

  • Next message: Stijn De Saeger: "SWI prolog list unification problem"
    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


  • Next message: Stijn De Saeger: "SWI prolog list unification problem"