Line Endings?

require "ptools"

File.nl_convert(old_file, new_file, "unix")

Regards,

Dan

···

-----Original Message-----
From: Ezra Zygmuntowicz [mailto:ezra@yakimaherald.com]
Sent: Monday, November 07, 2005 10:51 AM
To: ruby-talk ML
Subject: Line Endings?

Hey there folks-

     Does anyone have a reliable pure ruby way to change the line
endings of a file from Classic MacOS9 to normal unix line endings?
Should I just run a regex on it or is there a better way?