Use File.read to ensure close