On 5/17/07, Singeo <singeo.sg / gmail.com> wrote: > Hi, I'm pretty new to Ruby. I've got a text file where I need to > remove some new line characters. I've tried everything I can think of > to do this with no success, including: > > line.gsub!("/r","") > line.gsub!("/n","") > line=line.chomp > > I can't seem to get the new line character to be recognised and dealt > with. Any advice appreciated. > > Thanks > > > line.chomp! doesn't work? Would you show some code? Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/