From: Singeo Date: 2007-05-17T16:40:10+09:00 Subject: Problem removing new line characters on Mac OS X 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