Solved

Delete a .tmp file??

Posted on 1998-02-08
7
270 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

728 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