-
I/O Files
Anybody,
I have been trying to find information on how to declare a global file. Otherwise I would have to pass file pointers to every function that either reads or writes to the files. I have searched but have not come up with anything. I would appreciate any advise.
Thanks
GVector
-
C style
Code:
#include <cstdio>
FILE *fp;
int main()
{
...
}
C++ style
Code:
#include <fstream>
using namespace std;
ifstream ifs;
int main()
{
...
}
-
I/O Files
:D Thank you very much. I really appreciate it. That was so simple I don't see how I missed it, but I have a long way to go. Thanks again,
GVector