You could use `contents = File.read(fact_timestamp)` here, which will automatically open + close the file handle.