From: Robert Klemme Date: 2008-06-11T03:09:52+09:00 Subject: Re: Making separate File On 10.06.2008 19:37, Axel Etzold wrote: > -------- Original-Nachricht -------- >> Datum: Wed, 11 Jun 2008 02:24:45 +0900 >> Von: Michel Son >> An: ruby-talk@ruby-lang.org >> Betreff: Re: Making separate File > >> This error is arises when i run the code: >> "private method `split' called for # (NoMethodError)" >> >> Actually i am new to ruby thats why i have > sorry, that was my fault. > You must change the line with IO.readlines to > > text=IO.readlines(sourcefile).to_s Or just do test = IO.read(sourcefile) Cheers robert