File.open("example.txt", "r") do |file| content = file.read puts content end