file = File.open("sampleIn.in") do |file| while content = file.gets puts file.gets end end