I have to format std::string with sprintf and send it into file stream. How can I do this?
This is how google does it: StringPrintf (BSD License) and facebook does it in a quite similar fashion: StringPrintf (Apache License) Both provide with a convenient StringAppendF too.
StringAppendF