|
From: Josh M. <mrl...@gm...> - 2005-11-28 03:59:38
|
That's the function prototype. You call it just like any other function:
remove("Void");
On 11/27/05, Scott <fre...@ve...> wrote:
>
> 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.
>
> Any ideas?
>
> FILE *myfile;
> myfile =3D fopen("Void","wb");
> fwrite(Obj, 1, 400, myfile);
> fclose(myfile);
> int remove(const char *myfile);
>
> Cheers,
> Scott.
>
--
Cheers,
Josh
|