C++ might claim to be the language of performance, but when it comes to file operations its standard library is a bit of a minefield. And it’s not even (entirely) Windows’ fault.