Path: utzoo!attcan!uunet!mcsun!ukc!axion!masalla.fulcrum.bt.co.uk!sie From: S.J.Raybould@fulcrum.bt.co.uk (Simon Raybould) Newsgroups: comp.sys.amiga.tech Subject: Re: A command ... Message-ID:
Date: 6 Jun 90 12:33:49 GMT References: <5004@zehntel.UUCP> Organization: BT Fulcrum, Birmingham, England Lines: 27 Disclaimer: Organisation given for identification purposes only In article <5004@zehntel.UUCP> donw@zehntel (Don White) writes: > >*To: myb100@csc.anu.oz >*Subject: Re: Deleting files from within C ? > >*In article <2136.265c6de6@csc.anu.oz> you write: >*> >*>G'day y'all >*> >*> I want to ask what is probably an easy question for all you great, >*>highly informed techies out there :-) (butter 'em up and then hit 'em :-) ): >*> >*> How does one delete files on (say) the RAM: disc from *within* a > > I think most compilers use the unix style 'System' command. > > ex. > char mystring[] = "delete foo"; > System(mystring); /* execute command as if it was typed in */ Whats wrong with unlink("foo"); SJR