std::string formatting like sprintf May 1, 2022 by IT Nursery I have to format std::string with sprintf and send it into file stream. How can I do this? 42 s 42