Solved

Delete a .tmp file??

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

thanks
0
Comment
Question by:stevenc317
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Accepted Solution

by:
q2guo earned 20 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

623 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