Opening and Printing to multiple txt files.

Could someone provide me with an example of how to open and print to multiple txt files?
just use two streams:
1
2
ifstream in01, in02;
ofstream out01, out02;
Topic archived. No new replies allowed.