POV-Ray : Newsgroups : povray.general : Problem with file #read  : Re: Problem with file #read Server Time
30 Jul 2024 02:15:54 EDT (-0400)
  Re: Problem with file #read  
From: Adam
Date: 27 Jan 2010 16:03:48
Message: <4b60aa33@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


Well put, Jerome.  I thought either I or Bart was 
crazy for a bit there. Now I can see that I need 
better glasses.   Many thanks.


Post a reply to this message

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