delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/27/21:57:04

Date: Thu, 28 Jan 1999 08:41:11 +0530 (IST)
From: "Raju K.V" <rajukv AT wipinfo DOT soft DOT net>
X-Sender: rajukv AT tagore
To: djgpp AT delorie DOT com
Subject: Re: How do you delete files on disk with djgpp ?
In-Reply-To: <199901271144.GAA25238@delorie.com>
Message-ID: <Pine.SV4.3.93.990128083918.21415B-100000@tagore>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

there is a function called remove to remove files from disk. use it as 
remove(filename);

where filename is the name of the file to be deleted.

On Wed, 27 Jan 1999, Benjamin Downs wrote:

> Hi,
> 
> I'm trying to delete a file on a hard disk from within a c program. There
> seems to be plenty of support for creating / appending to  files and
> setting their length to 0, but not much in the way of deleting it when
> you're finished.
> 
> Any comments appreciated,
> 
> ben DOT downs AT dial DOT pipex DOT com
> 
> 


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019