Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Delete a .tmp file??

How do I delete a .tmp file???

thanks
0
stevenc317
Asked:
stevenc317
1 Solution
 
q2guoCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now