POV-Ray : Newsgroups : povray.newusers : Using a word as a string and as a variable : Using a word as a string and as a variable Server Time
30 Jul 2024 22:20:52 EDT (-0400)
  Using a word as a string and as a variable  
From: Kaveh
Date: 8 Aug 2003 13:35:07
Message: <1fzdy3a.1uqiza819cf4ckN%kaveh@delete_this.focalimage.com>
I want to make it easy to write out my data to a file, using a macro
like:

 write_it(my_var)

which would envoke:

  #fopen myfile "abn.data" append
    #write(myfile,"my_var = ",my_var,"\n")
  #fclose myfile   

So my_var is output verbatim, then with its current value. How can I do
this?

-- 
Kaveh


Post a reply to this message

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