In this line, you're only using fstrem. The << operator is actually calling a function in the 'b' object, and 'a' is being passed as a parameter. So you're using an object from fstream, an operator from that object, and a string. You would not need iostream for that.Quote:
b << a: