i use unlink(),exec("cmd /c del aa.txt")or system("del aa.txt") ,but did not delete the file
Did you include the path to the file that you want to delete?
but when i use exec("cmd /c del aa.txt"); it display error:"Unable to fork [cmd /c del aa.txt]"
it seems that we cant delete a file on NT!!!!! how could be possible?!?!?!?!?! have u resolved the prob? plz tell me! i thought to open it with fopen(,"w+") so if i cant delete i can trunk it to 0... 🙂