[ruby-it] File
Antonio Cangiano
acangiano a gmail.com
Sab 14 Feb 2009 13:43:57 CET
2009/2/14 joxer <kell.92.k a gmail.com>
> Ho il problema che devo leggere un file, e poi scriverci sullo stesso.
> Voi come fareste senza aprire una volta in read e l'altra in write?
File.open('test.txt', 'r+') do |f|
#...
end
Ciao,Antonio
--
http://antoniocangiano.com - Zen and the Art of Programming
http://math-blog.com - Mathematics is wonderful!
http://stacktrace.it - Aperiodico di resistenza informatica
Follow me on Twitter: http://twitter.com/acangiano
Currently writing "Ruby on Rails for Microsoft Developers" for Wrox.
More information about the Ml
mailing list