Line 6: syntax error, unexpected tCONSTANT, expecting kDO or '{' or '('
puts "if you do want that, hit RETURN"
^
Line 11: syntax error, unexpected tIDENTIFIER
puts "opening the file..."
^
Line 14: warning: parenthesize argument(s) for future version
Line 14: syntax error, unexpected tIDENTIFIER, expecting kEND
puts "nuking the file. Goodbye!"
^
Line 17: warning: parenthesize argument(s) for future version
Line 17: warning: parenthesize argument(s) for future version
Line 17: syntax error, unexpected tIDENTIFIER, expecting kEND
puts " now i am going to ask you for three lines"
^
Line 17: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '('
puts " now i am going to ask you for three lines"
^
Line 19: syntax error, unexpected tIDENTIFIER, expecting kEND
print "line 1: " line1 = STDIN.gets.chomp()
^
Line 20: syntax error, unexpected tIDENTIFIER, expecting kEND
print "line 2: " line2 = STDIN.gets.chomp()
^
Line 21: syntax error, unexpected tIDENTIFIER, expecting kEND
print "line 3: " line3 = STDIN.gets.chomp()
^
Line 23: syntax error, unexpected tCONSTANT, expecting kEND
puts " I am going to write these to the file."
^
Line 23: syntax error, unexpected tSTRING_BEG
puts " I am going to write these to the file."
^
Line 26: syntax error, unexpected $undefined, expecting kEND
target.write("\n")
^
Line 28: syntax error, unexpected $undefined, expecting kEND
target.write("\n")
^
Line 30: syntax error, unexpected $undefined, expecting kEND
target.write("\n")
^
Line 32: syntax error, unexpected ',', expecting kEND
puts "and Finally, we close it"
^
Line 32: unterminated string meets end of file
Line 32: warning: parenthesize argument(s) for future version
Line 32: warning: parenthesize argument(s) for future version
Line 32: syntax error, unexpected $end, expecting kEND