From: Gregory Millam Date: 2004-05-06T19:41:11+09:00 Subject: Re: readlines Received: Thu, 6 May 2004 19:28:56 +0900 And lo, Martin wrote: > hi > i use the following syntax to read a file with 7 lines in a array > but only the first element contains all lines > i tryed to add a delimiter as 2. argument but it doesnt work? > code: > > > arFile = readlines("datname") > 2. try > delimiter = "\n" > arFile = readlines("datname", delimiter) > this produces an error readlines() reads from STDIN until EOF. If you want to read from a file, you'll want: IO.readlines("datname")