From: "U.Nakamura" Date: 2002-06-18T16:32:39+09:00 Subject: Re: File Write bug - Ruby mswin Hello, In message "File Write bug - Ruby mswin" on Jun.18,2002 16:23:44, wrote: | I have an application that generated a binary file. It has always worked | fine, however having recently switched to the mswin version of ruby I find | that the application nolonger works correctly. The problem is that | file.write (or file.print) is printing an extra byte! (sometimes) How do you open the file? If you use open(file, "w"), change it to open(file, "wb"). Regards, -- U.Nakamura