Forum: Italian Ruby user group Re: Leggere un file e trasformarlo in array

Posted by David Welton (Guest)
on 2010-08-04 11:14
(Received via mailing list)
> in secondo luogo, con tutta la disponibilità che puoi trovare qui, non
> aspettarti che qualcuno ti scriva il programmino dal principio, anche
> senza ulteriori dettagli, ad esempio come è strutturato il file da
> leggere...

Il programmamino di partenza e` abbastanza semplice:


myarray = File.read('some_file').split

--
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.