|
From: <Mat...@Ve...> - 2005-03-02 23:08:10
|
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.
|