POV-Ray : Newsgroups : povray.general : a simple question about File I/O : Re: a simple question about File I/O Server Time
5 Nov 2024 03:17:07 EST (-0500)
  Re: a simple question about File I/O  
From: aaaz123456
Date: 2 Jul 2003 12:43:28
Message: <3f030bb0@news.povray.org>
Finally, I use the loop which is like the following loop.
I don't get any problem ,but I don't know why I can't use ABX's way to
write my loop.

Anyway, thank you.


#declare N=23431;  // fill with
#declare M=3;  // favorite dimensions
#declare Ar=array[N][M];
#fopen MyFile "data.txt" read

#declare n=0;
#while (n<N)
  //#declare m=0;
  //#while (m<M)

    #read(MyFile,a,b,c)

    #declare Ar[n][0]=a/100 ;
      #declare Ar[n][1]=b/100 ;
        #declare Ar[n][2]=c/100 ;

   // #declare m=m+1;
  //#end
  #declare n=n+1;
#end
#fclose MyFile


Post a reply to this message

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