POV-Ray : Newsgroups : povray.general : #fkill statement Server Time
15 Nov 2024 21:15:20 EST (-0500)
  #fkill statement (Message 1 to 2 of 2)  
From: Margus Ramst
Subject: #fkill statement
Date: 20 Nov 1998 19:01:52
Message: <36560322.423D0722@peak.edu.ee>
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


Post a reply to this message

From: Dan Connelly
Subject: Re: #fkill statement
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.