POV-Ray : Newsgroups : povray.general : input/output file : Re: input/output file Server Time
30 Jul 2024 04:25:17 EDT (-0400)
  Re: input/output file  
From: clipka
Date: 16 Oct 2009 10:20:21
Message: <4ad88125$1@news.povray.org>
Thomas de Groot schrieb:

> Also you can 
> simplify your define as you do not need the #if statement. Just write:
> 
> #while (defined(inputfile))
>   #declare x1 = y1;
>   #declare x2 = y2;
>   #declare x3 = y3;
>   #read (inputfile, y1, y2, y3)
>   ....
>   ....
>   #write (outputfile, x1,", ", x2,", ", x3,",","\n")
>   ....
> #end

I guess without the pre-read this will cause a parse error, as y1,y2,y3 
will be undefined at this point.


Post a reply to this message

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