Standard input and output


In [4]:
puts 'Hello, world!'


Hello, world!

In [5]:
$stdout.puts 'stdout'
$stderr.puts 'stderr'


stdout
stderr

In [10]:
print "print\n"
$stdout.write "write\n"


print
write

In [ ]: