GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Tuesday, March 15, 2011

C - Removing File

#include <stdio.h>
#include <stdlib.h>


int main()
{
    system("color 2f");

    if(remove("file.txt") == 0){
        perror("Successfully Deleted!");
    }else{
        perror("Error!");
    }

    return 0;
}

Share/Bookmark

No comments:

Post a Comment