------ art_22141_20909022.1179387981272 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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","") ~~ \r line.gsub!("/n","") ~~\n line ne.chomp > > I can't seem to get the new line character to be recognised and dealt > with. Any advice appreciated. > > Thanks > > > try it -- http://sourceforge.net/projects/mycodeline/ ------ art_22141_20909022.1179387981272--