Quote:
|
Originally Posted by gitter1226
You can have as many files open as you want, within reason of course. They don't need to be named fout or anything similar to that, it is just a convention. If you want to have two open filestreams just do this :
Code:
ofstream f1out, f2out;
f1out.open("Log.txt");
f2out.open("Another.txt");
You can use those two file streams as normal.
If this is not working can I see all your code?
HTH,
Jeff
|
Heh, I was declaring ofstream twice, and for some reason it doesn't like that - see, I knew it'd be something simple - thanks
and thankyou aswell Valmont, that'll come in handy
