but use the windows file io API
+1

FileSystem lib from VDF-Guidance is your friend.
VDF-GUIdance - FileSystem class