From: Aatch Random Date: 2007-06-15T13:09:49+09:00 Subject: Re: ruby File#sysread Bill Kelly wrote: > From: "James Milner" >> windows fault > Just in case the answer wasn't clear, Windows pretends that "text" files > are different from "binary" files. > > So you'll want to use "binary mode" to read/write binary files on > Windows. > > Thus, use "rb" instead of "r" to read a binary file, and "wb" instead of > "w" > to write a binary file. > > > Hope this helps, > > Bill Ahh, thanks. I've had little experience with the File class in ruby. I'll test it now. It should ::prays:: work. -- Posted via http://www.ruby-forum.com/.