POV-Ray : Newsgroups : povray.general : Problem with file #read  : Re: Problem with file #read Server Time
30 Jul 2024 02:24:42 EDT (-0400)
  Re: Problem with file #read  
From: "Jérôme M. Berger"
Date: 27 Jan 2010 14:37:52
Message: <4b609610$1@news.povray.org>
Adam wrote:
> bart wrote:
> 
>>  >I can't seem to #read using close to the example in
>>  >the Documentation. The example below errors that var2
>>  >is an undeclared identifier.
>>
>> The reason is that the MyFile (I mean your file) is still open.
>>    Just use #fclose MyFile
>> instead of #fclose Myfile
> 
> No, I don't understand.  See below that Myfile 
> is opened and closed for the #write.  And that 
> Infile is opened and closed for the #read. 
> 
> #fopen MyFile "shapesA.txt" write
> #write(MyFile,"\"ShapesA\",",xf1,",",xf2,",",xf3,",",xf4,",",xf5"\n")
> #fclose Myfile
> #end
> 
	Pov is case-sensitive, therefore MyFile is different from Myfile...

		Jerome
-- 
mailto:jeb### [at] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.