POV-Ray : Newsgroups : povray.advanced-users : file reading mistake : Re: file reading mistake Server Time
28 Jul 2024 10:27:24 EDT (-0400)
  Re: file reading mistake  
From: Roman Reiner
Date: 28 Jan 2006 12:05:00
Message: <web.43dba3c7fd774041d467129c0@news.povray.org>
> #while (defined(SplnFile))
>   #read (SplnFile, Rv[cnt-1])  //*<-- fail point, read into an array fails
>   #declare cnt = cnt + 1;         // why must it be undeclared?
>                             // how do I fix it so the #while statement
> #end                              // reads it?

i had the same problem a couple of times. when i remember right something
like this should work:

#while (defined(SplnFile))
  #read (SplnFile, value)
  #declare Rv[cnt-1] = value;
  #declare cnt = cnt + 1;
#end

where value is an undefined identifier.
can't test it in the moment. rendering... ;-)
Hope that helps

Regards Roman


Post a reply to this message

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