POV-Ray : Newsgroups : povray.general : Can I not pass a file to a macro? : Can I not pass a file to a macro? Server Time
29 Jul 2024 12:18:43 EDT (-0400)
  Can I not pass a file to a macro?  
From: Cousin Ricky
Date: 5 Aug 2011 17:15:00
Message: <web.4e3c5c1e1d69a39a85de7b680@news.povray.org>
When I run:
______________________________________

#version 3.7;

global_settings { assumed_gamma 1 }

#macro Write_something (N, FileID)
   #write (FileID, N)
#end

#fopen F "test.txt" write
Write_something ("Hello, world.\n", F)
#fclose F
______________________________________

I get the error:
______________________________________

"C:\Users\Ricky Callwood\Documents\POV-Ray\test\file_param.pov" line 19: Parse
Error: Expected 2 parameters but only 1 found.
______________________________________

I am running POV-Ray version 3.7RC3.

My OS is the infinitely exasperating Windows 7 Ultimate.


Post a reply to this message

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