POV-Ray : Newsgroups : povray.unofficial.patches : #fopen and file creation : Re: #fopen and file creation Server Time
8 Jul 2024 16:28:24 EDT (-0400)
  Re: #fopen and file creation  
From: Tom York
Date: 9 Feb 2002 09:44:41
Message: <3c6535d9$1@news.povray.org>
In article <3c645874@news.povray.org>, Warp wrote:
>  What #fopen parameters are you using to open the file (which may not
>exist)? If you open it for 'write', it should create it.

Sorry, my question was very badly phrased (and unnecessary,
as it turns out). I wanted to conditionally create the file.
I found after posting that the "append" mode did what I wanted. 
Too much time spent writing C programmes made me think
of testing the file handle for fopen success, rather than
looking at the available fopen modes more carefully!

Thanks,

Tom


Post a reply to this message

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