Ruby/File Directory/IO.close
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
close the stream with close.
ios = IO.new( 1, "w" ) ios.puts "IO, IO, it"s off to the computer lab I go." ios << "Ask not " << "for whom the bells toll." << " -John Donne" ios.flush # => Ask not for whom the bells toll. -John Donne ios.close