Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Delete a .tmp file??

Posted on 1998-02-08
7
Medium Priority
?
274 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 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

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!

Question has a verified solution.

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

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

688 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