Hoşgeldin Misafir

C ile dosya silme

MiRaT

13 Kas 2017
2,077 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Kod:
#include<stdio.h>
#include<string.h>
int main()
{
    char file_name[40];
    printf("Enter the file name with ********:n Example, c:example.txtnn");
    gets(file_name);
    if(remove(file_name) != 0 )
    puts("Error deleting filenn");
    else
    puts("File successfully deletednn");
    return 0;
}