This one has been bugging me for some time, so i'd appreciate it if anyone could help.
Right, when I declare my stream like so:
Code:
fout.open("Log.txt");
and use the stream as you normally would, everything is fine - but the problem is, I want to create another one, for a different file in the same program - how do I go about doing that? I tried changing it from fout to something else when creating a new txt file, and got this:
Code:
'fout2' undeclared (first use this function)
and obviously, just trying to re-open a different file with the same stream, doesn't seem to work, unless i'm missing something? this is probably something really simple i'm missing, but i've never had it explained it to me, in books, tutorials, or otherwise, so I would really appreciate it!
