POV-Ray : Newsgroups : povray.advanced-users : File Read Problem : File Read Problem Server Time
29 Jul 2024 18:19:00 EDT (-0400)
  File Read Problem  
From: David Vincent-Jones
Date: 4 Mar 2001 15:42:41
Message: <3aa2a8c1@news.povray.org>
Can somebody explain to me why the following code is halting at the second
read. If I combine the first 2 reads then it fails on the last (third) read.
 Error message ...."file identifier expected but undeclared identifier
NB_File found instead"

Typical data line:
5,-5,<331530,4711404,0>, <331493,4711406,0>, <331513,4711428,0>,
<331536,4711408,0>, <331530,4711404,0>,

#fopen NB_File "Build.dat" read  // #while (defined(NB_File))
   #read (NB_File,Num)
   #read (NB_File,Elev)
   prism

     linear_sweep
     linear_spline
     (Elev+5),(Elev+30)
     Num
     #local i=0;
     #while (i<Num)
        #read (NB_File, Vec)
        Vec
        #local i=i+1;
     #end
     pigment {color Red} }
#end


Post a reply to this message

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