Allow reading and writing files with the IO class