Overwrite a file

From: Jordan C N Chong <chong_at_cs.utwente.nl>
Date: Sun 08 Jun 2003 09:42:37 AM GMT
Message-ID: <CAEBJPIJEPDOELLGKECLOEHPCBAA.chong@cs.utwente.nl>
Dear all,

Good morning.

I have a file, temp
which has the content:
p(1,2,3).

I have run the following:
open(temp,update,File),
read(File,p(X,Y,Z)),
Q is X + Y + Z,
write(File,p(X,Y,Q)),
close(File).

My question is, is it possible to overwrite p(1,2,3) to p(1,2,6)?
I have tried the above, it only appends p(1,2,6) at to the file.

Thanks.





Regards,
Jordan Chong
EWI Department
Universiteit Twente
Received on Sun Jun 08 11:53:09 2003

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:24 PM GMT GMT