|
From: daniel <mag...@nt...> - 2005-03-04 11:15:31
|
Okay, ignore my last message. Everything works now. Thanks for the help. from daniel ----- Original Message ----- From: <Mat...@Ve...> To: <mag...@nt...>; <Dev...@li...> Sent: Wednesday, March 02, 2005 11:07 PM Subject: RE: [Dev-C++] opening files in c > OK, > > Your terms are mixed up. In C/C++, opening a file means getting it ready to > be read and/or written from/into by your code. > > Open does _not_ mean to execute a file. For executing a file, you need > system() which is in <cstdlib>. > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of daniel > Sent: Wednesday, March 02, 2005 2:59 PM > To: Dev...@li... > Subject: [Dev-C++] opening files in c > > > Hello, > I am writing a program which asks the user whether they want to > execute (open) a batch file or not. > I tried using the fopen function but it seems to only enable you to write to > a file or read from a file (e.g. calculate the number of words in a given > file). > What I want to do is open an external file. Is there a command for this? > ___________________________________________________________________ > The information contained in this message and any attachment may be > proprietary, confidential, and privileged or subject to the work > product doctrine and thus protected from disclosure. If the reader > of this message is not the intended recipient, or an employee or > agent responsible for delivering this message to the intended > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. > If you have received this communication in error, please notify me > immediately by replying to this message and deleting it and all > copies and backups thereof. Thank you. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |