Implement more native file I/O