POV-Ray : Newsgroups : povray.general : #read problems : Re: #read problems Server Time
18 Apr 2024 00:00:50 EDT (-0400)
  Re: #read problems  
From: jr
Date: 1 Oct 2018 16:45:00
Message: <web.5bb2866877bafccb0d4fc1e0@news.povray.org>
hi,

"Kenneth" <kdw### [at] gmailcom> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > should work.  (tried with debug concat, on v.3.8.0 alpha)
> Thanks! It does indeed.
> My own proper syntax is now:
> object{MY_OBJ
> #fopen FOOBAR "my_file.txt" read
> #read(FOOBAR,AAA)
> #fclose FOOBAR
> rotate AAA
> }

fwiw, I'd write:

#fopen FOOBAR "my_file.txt" read
#read(FOOBAR,AAA)
#fclose FOOBAR
object{MY_OBJ rotate AAA}

no functional difference/reason.

> ... It's not obvious that AAA 'hangs around' or remains in memory(?)
> after the txt file is closed. (There's no actual #declare or #local
> anywhere.)

try the above.  (intruding on clipka's territory here) think of the
(re-)"#declare" of 'AAA' happening "inside" the #read.

(now you've got me using quotes too..  ;-))


regards, jr.


Post a reply to this message

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