POV-Ray : Newsgroups : povray.general : #read problems : Re: #read problems Server Time: 19 Aug 2019 13:49:32 GMT
  Re: #read problems  
From: clipka
Date: 1 Oct 2018 13:44:00
Am 01.10.2018 um 11:09 schrieb Kenneth:

> During a later POV-Ray session, I want to read the file back into the same
> scene, so I do this:
> 
> object{MY_OBJ
> rotate
> #fopen FOOBAR "my_file.txt" read
> #read(FOOBAR,AAA)
> #fclose // or this line can be commented-out
> }
> 
> .......but "my_file.txt" is *completely* ignored, as is the entire #fopen
> construct. The fatal error message says, "Expected numeric expression, } found
> instead", due to the rotate keyword apparently having nothing following it.

Heh! You're being fooled by the error message.

POV-Ray isn't complaining about a missing parameter for `rotate`, it is
complaining about a missing parameter for `#fclose`".

You need to specify which file you want to close (you can have multiple
open at the same time):

    #fclose FOOBAR

(Also, you then need to actually /use/ `AAA`, othjerwise POV-Ray /will/
complain about a missing parameter for `rotate`.)


Post a reply to this message

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