From: Jim Freeze Date: 2004-05-06T21:16:36+09:00 Subject: Re: readlines On Thursday, 6 May 2004 at 20:03:55 +0900, Martin Uruz wrote: > Gregory Millam wrote: > > >Received: Thu, 6 May 2004 19:28:56 +0900 > >And lo, Martin wrote: > > > > > now i use this dirty workaround but it works > arFile = readlines("tagedatei_uruz") > arLines = arFile[0].split("\n") > Were you aware that you could do: arFile = File.read("tagedatei_uruz") arFile.each { |line| .. your code here # #each works on a single string # giving you each line } -- Jim Freeze HOW YOU CAN TELL THAT IT'S GOING TO BE A ROTTEN DAY: #1040 Your income tax refund cheque bounces.