Reputation: 2409
take this code an example
std::ifstream myinput("myinput.txt");
std::ofstream myoutput("myoutout.txt");
myoutput << myinput.rdbuf();
Upvotes: 1
Views: 125
Reputation: 6678
<istream>
and std::ofstream is defined in <ostream>
.std::basic_ios::rdbuf
, you can look in <ios>
, and for std::ostream::operator<<(std::basic_streambuf*)
, you can look in <ostream>
.Upvotes: 3