View Single Post
Old 09-19-2005, 09:03 AM   #2 (permalink)
gitter1226
Registered User
 
Join Date: Sep 2005
Posts: 3
gitter1226 is on a distinguished road
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
gitter1226 is offline   Reply With Quote