You can specify one buffer for your file stream like that: char buf[BUFFER_SIZE]; std::ofstream file(\"file\", std::ios_base::binary | std::ios_base::out);
How can I convert xml to Python data structure using lxml? I have searched high and low but can\'t find anything.