POV-Ray : Newsgroups : povray.general : #fkill statement : Re: #fkill statement Server Time
13 Aug 2024 03:10:20 EDT (-0400)
  Re: #fkill statement  
From: Dan Connelly
Date: 20 Nov 1998 20:33:17
Message: <3656184C.95917E9A@flash.net>
My #system patch will let you do this.  I believe I have the
record for the simplist patch (maybe 5 lines of C code :))
to get incorporated into SuperPatch, so if you use SuperPatch,
just do (assuming the file to be deleted has its name stored
in FileName):

#system concat("rm ", FileName)   // UNIX
#system concat("del ", FileName)  // DOS

etc.

Of course, this won't recognize file handles, so it is not
the ideal solution.

Dan

Margus Ramst wrote:
> 
> With POV 3.1 we have been granted most of the standard sile I/O statements, but
> one is missing: a command to delete files (sth. like #fkill [file handle]). I
> feel it would be useful, if only for neatness. Comments?
> 
> Margus

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

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