I completely agree.Either approach is valid whether it be via stringstream or via sprintf. Since this is a C++ forum then naturally we would recommend the stringstream approach. However that does not make it more or less right in a purely technical sense. Both will accomplish the goal and both will get the job done. To me there is no benefit in using C++ just to be more C++-ey and in this instance it makes no difference either way. When I use a C++ approach to solve a problem it is for a very distinct reason and to serve a specific purpose. It is not merely to please the C++ gods whoever they may be or to look myself in the mirror in the morning and pride myself on being a C++ programmer.