From: Axel Etzold Date: 2008-06-11T02:37:04+09:00 Subject: Re: Making separate File -------- 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 > > > -- > Posted via http://www.ruby-forum.com/. Michel, sorry, that was my fault. You must change the line with IO.readlines to text=IO.readlines(sourcefile).to_s Otherwise, text is an Array, but with to_s, it is converted to a String. And that's what the Regular Expression needs. Best regards, Axel -- Psssst! Schon vom neuen GMX MultiMessenger geh�rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger