473,508 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a C runtime file delete function?

I have been looking at the fopen etc but cannot seem to find a way to delete
a file using C runtime functions.

Angus Comber
ac@NOSPAMiteloffice.com

Nov 14 '05 #1
6 14272
Angus Comber <an***@iteloffice.com.pleasenospam> spoke thus:
I have been looking at the fopen etc but cannot seem to find a way to delete
a file using C runtime functions.


(That's because you can't, with standard C.)

http://www.csclub.uwaterloo.ca/u/dj3...lc-welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #2
Christopher Benson-Manica wrote:
Angus Comber <an***@iteloffice.com.pleasenospam> spoke thus:
I have been looking at the fopen etc but cannot seem to find a way to
delete a file using C runtime functions.


(That's because you can't, with standard C.)


Wrong.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #3
Angus Comber wrote:
I have been looking at the fopen etc but cannot seem to find a way to
delete a file using C runtime functions.


Yes. It's called remove(), and it is declared in <stdio.h>

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #4
On Thu, 22 Jan 2004 22:33:07 +0000 (UTC), Christopher Benson-Manica
<at***@nospam.cyberspace.org> wrote:
Angus Comber <an***@iteloffice.com.pleasenospam> spoke thus:
I have been looking at the fopen etc but cannot seem to find a way to delete
a file using C runtime functions.


(That's because you can't, with standard C.)

http://www.csclub.uwaterloo.ca/u/dj3...lc-welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html


http://www.eskimo.com/~scs/C-faq/q19.16.html

<G>

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #5
Christopher Benson-Manica wrote:
Angus Comber <an***@iteloffice.com.pleasenospam> spoke thus:

I have been looking at the fopen etc but cannot seem to find a way to delete
a file using C runtime functions.

(That's because you can't, with standard C.)


Then what does remove do?

--
Thomas.

Nov 14 '05 #6
Thomas Stegen <ts*****@cis.strath.ac.uk> spoke thus:
Then what does remove do?


Remove my sense of shame? *sigh*

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
40441
by: JW | last post by:
Hi, I don't seem to get any results from the following use of Runtime.getRuntime().exec(cmd) using Java 1.4 on Redhat linux. Suppose that in the same directory as my java file below, I have...
3
1801
by: poindexter frink | last post by:
Fairly new to VB-style programming, so excuse me if I'm doing something logical. I'm working with CSV files, extracing certian columns, and ultimately building a final CSV file. I'm using the...
1
1013
by: PaulieS | last post by:
Hi all. Am migrating a customer from IIS5 on W2K server to IIS6 on W2K3. Zipped all the websites and unzipped them to the identical locations on new server. Used IISMT to migrate metabase. ...
1
1679
by: Pascalus | last post by:
Hi there! I have a problem with the delete operator to destroy a (char*). It used to work since today. I don't know what I may have changed in the project and/or the solution (probably in the...
4
1214
by: cmdolcet69 | last post by:
I have the below code that calls a function to delete a file that i added to a listview node. What happens is that that file doesn;t delete. Please help me out. I have included the event handler...
1
4666
by: rickcross | last post by:
I am trying to use the Access 2007 runtime. I have a program that is fully working in 2007 but when I install the runtime version with same Operating system and Access 2003 installed I have...
0
5142
ADezii
by: ADezii | last post by:
This is the 2nd Tip in a series of Tips on the Microsoft Scripting Runtime Library. The 1st Tip related to Drives, while this Tip will concentrate on the Folders (Directories) in your PC and various...
0
5401
ADezii
by: ADezii | last post by:
This is the 3rd in a series of Tips dealing specifically with the Microsoft Scripting Runtime Library. In this Tip, we'll show you how to return specific Properties relating to Files, as well as...
11
2806
by: LayneMitch via WebmasterKB.com | last post by:
Hello. This is a reference file from a book I read in which the core subject is the use of 'event listeners'. I'm trying to load the file in Firefox and it's giving me an error message: ...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5640
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.