-------- Original-Nachricht -------- > Datum: Wed, 11 Jun 2008 02:24:45 +0900 > Von: Michel Son <zul_haq / hotmail.com> > 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 #<Array:0x28402b8> (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öòt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger