[Webinar] Streamline your web hosting managementRegister Today

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

Delete a File?

Hi!
How do I delete a file in C?
/Micke
0
mickehallgren
Asked:
mickehallgren
  • 3
1 Solution
 
AxterCommented:
Try remove function:

int remove( const char *path );


0
 
AxterCommented:
Example:
remove("c:\\backup.bat");
0
 
AxterCommented:
FYI:
You need to inlcude <stdio.h>
0
 
mickehallgrenAuthor Commented:
Thanks! I found the answer at the same moment submitted my question... But I'll give you the points anyway.

/Micke
0

Featured Post

Get Cisco Certified in IT Security

There’s a high demand for IT security experts and network administrators who can safeguard the data that individuals, corporations, and governments rely on every day. Pursue your B.S. in Network Operations and Security and gain the credentials you need for this high-growth field.

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