Put all file operations in io.rb