Changed to use File.read and File.write