From: "Jean-Gael Gricourt" Newsgroups: comp.os.msdos.djgpp Subject: remove() don't work ? Date: 12 May 1997 15:09:35 GMT Organization: Organization Lines: 29 Message-ID: <01bc5ede$42f78680$eb173ccc@jordan> NNTP-Posting-Host: brpt01-sh4-port235.snet.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, Please, someone tell me why It is impossible to erase a file with 'remove()' : Note: I runned it under Win 95 inside a dos box. ------------------------------------------------- #include int main() { FILE *tmp=fopen("ex.$$$","w"); if(tmp==NULL) { perror("fopen");return 1; } fprintf(tmp,"Just a try."); if(remove("ex.$$$")!=0) puts("I can't get ride of this #$?% file ! Why ?"); fclose(tmp); return 0; } ------------------------------------------------- JGG