POV-Ray : Newsgroups : povray.beta-test : Problem with #read : Re: Problem with #read Server Time
2 Nov 2024 07:25:09 EDT (-0400)
  Re: Problem with #read  
From: Anders K 
Date: 3 Jan 2002 12:16:42
Message: <3c3491fa@news.povray.org>
> When you read ten variables from file but there
> is nine in file then after ninth reading file handle is udefined

Note that in your code, you are testing whether the variable "aah" is
defined, rather than the file handle. However, the following code gives the
same error message:

#fopen wfile "nothing.txt" write
#fopen rfile "nothing.txt" read
#ifdef(rfile)
  #read(rfile,ahh)
  #local ohh=ahh;
#end

Anders

--
light_source{6#macro A(B)#declare C=mod(E B);#declare E=(E-C)/B;C#end
#macro B(E)#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(C<3)cylinder
{0(C=<1 2>).2translate<D+C*A(2)A(4)#else intersection{torus{1 .2}box{
-y 2}rotate<-1 0C+1>*90translate<D+1A(2)*2+1#end-2 13>finish{specular
1}pigment{red 1}}#end#end#end#local D=-8;1}B(445000298)B(519053970)B(
483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)


Post a reply to this message

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