I have to format std::string with sprintf and send it into file stream. How can I do this?
If you only want a printf-like syntax (without calling printf yourself), have a look at Boost Format.