From: Robert Dober Date: 2007-07-02T15:16:44+09:00 Subject: Re: How to import text file and split it up by lines On 7/2/07, Vasco Andrade e Silva wrote: > > f = File.open("/Users/john/Desktop/text.txt") > > f_lines = f.read.split("\n") There is a convenient shortcut File.readlines("/User/....") > HTH Robert -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Beck