From: Xavier Noria Date: 2006-10-18T18:52:02+09:00 Subject: Re: merging files with CR as EOL ? On Oct 18, 2006, at 11:40 AM, Une B�vue wrote: > i have to rewrite a script in order to be compatible with file lines > ending by CR instead of unix \n > > my script is simple, it take the content of a folder and merge the > file > all together in a unique file, those files have CR lines ending and > such > must be the merged file. If you need to work line-by-line instad of slurping them (which would be easier and line-ending agnostic), then pass CR as the optional separator to your line-oriented idiom. For example cr_text_file.each("\015") do |cr_line| # ... end -- fxn