POV-Ray : Newsgroups : povray.newusers : Using a word as a string and as a variable : Re: Using a word as a string and as a variable Server Time
30 Jul 2024 22:16:20 EDT (-0400)
  Re: Using a word as a string and as a variable  
From: ABX
Date: 11 Aug 2003 05:22:27
Message: <nunejvkg6b1n445p8ilipn1np12s6iaqgh@4ax.com>
On Fri, 8 Aug 2003 18:35:07 +0100, kav### [at] delete_thisfocalimagecom (Kaveh)
wrote:
> 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?

There is Parse_String macro available in include files of official 3.5
distribution.

ABX


Post a reply to this message

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