From: __ __ Date: 2009-07-15T04:04:08+09:00 Subject: Re: sysread problems > If you're running on Windows, and the files you're reading contain > binary data (that is, not plain text), then I'm guessing that Ruby is > encountering a ^Z character and interpreting it as EOF. You can fix this > by opening the file in binary mode, i.e. "rb" instead of plain "r". Wow, thank you!! It works perfectly now!! -- Posted via http://www.ruby-forum.com/.