You;re right about the C-style code being better at this, C++ style code is good at writing "string" type of output.