RE: Erase content of a file

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Gaurav - http://www.gauravcreations.com (gauravcreations_at_hotmail.com)
Date: 09/23/04


Date: Thu, 23 Sep 2004 02:21:03 -0700

you can do it the following way

Open "c:\test\yourlog.log" For Output As #1
Close #1

--
Gaurav Creations
"Dave" wrote:
> How can I erase the content of a file in VB6?
> 
> 
> I have a tool that creates a logfile on ta path with only create,read & write  rights (NO delete rights)
> 
> If i run the tool a second time it should erase the content of the logfile first instead of deleteing the file.
> 
> 
> 
> 


Relevant Pages