lines = File.readlines("text.txt")text = lines.joinputs "#{line_count} lines"paragraph_count = text.split(/\n\n/).lengthputs "#{paragraph_count} paragraphs"