3 ms·
Poor compared to what? The stdlib doesn't have anything to use files. The C win32 API CreateFile() has 6 arguments each more obscure than the previous one. Go
by user5994461 9y ago
Poor compared to what?
The stdlib doesn't have anything to use files.
The C win32 API CreateFile() has 6 arguments each more obscure than the previous one. Gotta support sync and async in a single function.
The C kernel API NtCreateFile() has around 13 arguments, probably including enum with 105 different values.
- justinclift 9y agoWell, Qt provides a QFile class to do standard file operations. eg create, remove, rename, etc. It also has the QFileInfo class to retrieve file info, such as creation/last-modified/last-accessed date. It just seems super weird to not also have the matching functions available to set those dates. Which we really wanted for our client side Qt/C++ GUI, as I'd just finished doing the server side part in Go which does provide those. And Qt seems to provide pretty much everything else... but this one weird bit which is missing. :/