Ray's playground

 

Basic Input and Output(Chapter 11 of Programming Ruby)

1 while line = gets
2   puts line
3 end
4 
5 File.open('test.txt''w') do |file|
6   file.puts "Hello, Ray"
7 end

 

posted on 2010-07-05 12:54  Ray Z  阅读(141)  评论(0)    收藏  举报

导航