users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

read/2 problem in gprolog-1.2.16 with SuSE 8.1


From: dojajuro
Subject: read/2 problem in gprolog-1.2.16 with SuSE 8.1
Date: Fri, 11 Oct 2002 11:08:39 -0400

Hello,
I have a problem with a very simple program:

q4 :- open('test.txt',read,F,[type(text)]),
      read(F,R),write(R),
      close(F).

exec q4 produces: 
uncaught exception: error(syntax_error('test.txt:2 (char:1) . or operator 
expected after expression'),read/2)

Can somebody help me ? get_char/2 instead of read/2 works !
I am using the binary version of gprolog-1.2.16 with SuSE 8.1.
Regards,
Roland Hanauer


__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]