Delete a .tmp file??

How do I delete a .tmp file???

thanks
LVL 1
stevenc317Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
q2guoConnect With a Mentor Commented:
call funcation remove

int result = remove("temp.tmp");
0
 
Ready4DisCommented:
you can also use the system("erase temp.tmp");
0
 
q2guoCommented:
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 
stevenc317Author Commented:
ok I need soemthing that will work from Borland C++ Builder v1.0 under Windows 95
0
 
q2guoCommented:
remove does work for Borland C++ Builder
0
 
AlFaCommented:
You'd better use unlink witch is Ansi
0
 
stevenc317Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.