Solved

Delete a .tmp file??

Posted on 1998-02-08
7
269 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
Independent Software Vendors: 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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

749 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