|
From: Scott <fre...@ve...> - 2005-11-28 03:56:21
|
Hi Guys,
I'm trying to delete a file (Windows XP Pro)
that i wrote using fwrite.
To my surprise this seems slightly more trivial
than i expected. (i'm using DevC/C++)
Some confusion over Unlink, and remove...
But i can't get it to work either way...
I tried using "int remove(const char *myfile);"
But it still leaves the file.=20
Any ideas?
FILE *myfile;
myfile =3D fopen("Void","wb");
fwrite(Obj, 1, 400, myfile);
fclose(myfile);
int remove(const char *myfile);
Cheers,
Scott.
|