Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Delete a .tmp file??

Posted on 1998-02-08
7
Medium Priority
?
275 Views
Last Modified: 2010-04-10
How do I delete a .tmp file???

thanks
0
Comment
Question by:stevenc317
7 Comments
 
LVL 3

Accepted Solution

by:
q2guo earned 80 total points
ID: 1181356
call funcation remove

int result = remove("temp.tmp");
0
 
LVL 2

Expert Comment

by:Ready4Dis
ID: 1181357
you can also use the system("erase temp.tmp");
0
 
LVL 3

Expert Comment

by:q2guo
ID: 1181358
Just want to let you know that system("erase temp.tmp")
is NOT portable, it only works in DOS.  Whereas, remove("temp.tmp") is portable.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:stevenc317
ID: 1181359
ok I need soemthing that will work from Borland C++ Builder v1.0 under Windows 95
0
 
LVL 3

Expert Comment

by:q2guo
ID: 1181360
remove does work for Borland C++ Builder
0
 
LVL 2

Expert Comment

by:AlFa
ID: 1181361
You'd better use unlink witch is Ansi
0
 
LVL 1

Author Comment

by:stevenc317
ID: 1181362
thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question