• C

Delete a File?

Hi!
How do I delete a file in C?
/Micke
mickehallgrenAsked:
Who is Participating?
 
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
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.