Hello I am new in c and ? have homework about tcp program and one poin in this project I cant pass can anywone help me please
StartsWithDEL() this function catch DEL user.txt like return true trim() like trim and give only file name user.txt
BUT when I write client line DEL user.txt is not going delete
if (StartsWithDEL(line,"DEL") == 1)
{
char *deltoken = strtok(line, "DEL");
char *itemDeleting = trim(deltoken);
//in this section I cach file name but cant delete it
remove(itemDeleting);
send(client, "
" ,strlen("
"),0);
}
question from:https://stackoverflow.com/questions/65648026/why-file-is-not-deleting-in-c-language