I was wondering if you can stream directly from one stream to another. e.g.
which obviously didn't work on my compiler (g++).Code:ifstream f("somefile", ios::in); cout << f;
I know you can use rdbuf or getline or get.
I tried something called "tie" but that didn't work either:
So how do you go about doing this?Code:cout.tie(&ifstream);