[futurebasic] Re: [FB] To KILL a file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2009 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Mon, 24 Aug 2009 22:47:59 +1200
Eugen Rosu wrote:

> I created a file thus:
> '--------------------
> fn FSMakeFSSpec( system( _aplVRefNum ), system( _aplParID ),  
> "MyFileCreated.txt", @fileSpec )
> open "O", 2, @fileSpec
> '--------------------
> and I want to KILL it, but I don't know the path, if I use the  
> statement: kill path$ [,refNum% [,dirID&]]

Instead of the 'kill' statement, use a direct toolbox call:
fn FSpDelete( fileSpec )

Robert P.