indata/outdata

i just have a question concerning writing out to a text file and reading in one,
i have this reading in and out a text file :

1
2
 ifstream indata ("atmosphere.txt",ios::in);
 ofstream outdata ("parep.txt");


however i just want to know how i can output the same exact text and numbers that are in the ifstream text file to the output

like this?
outdata<<("atmosphere.txt");
maybe??
http://www.cplusplus.com/doc/tutorial/files/
Everything you need to know is there :)
thanks!
Topic archived. No new replies allowed.