From: "Wolfgang Nádasi-donner" Date: 2007-08-14T03:16:34+09:00 Subject: Re: ENTER character Gavin Kistner wrote: > On Windows, pressing the 'enter' key key inserts a CR/LF pair, > representable in a Ruby string as "\r\n". If you are reading from a file in Windows, Ruby will convert the "\r\n" sequence to a single "\n". Because this can cause trouble when working with binary data or when using direct positioning one can open a file for binary processing, simly by adding a "b" character to the type of opening the file (see documentation for details). When working with a file opened in binary mode, each line ends with "\r\n". Wolfgang Nádasi-Donner -- Posted via http://www.ruby-forum.com/.