From: Christian Szegedy Date: 2002-09-07T01:11:17+09:00 Subject: Re: cgi.rb replacing "0x0a" symbols with "0x0d 0x0a" ? RayZ wrote: I am just guessing (I don't use MSW), but you may try : newFile = File.new(CustomDir + newFilename + extension, "wb") Note the "wb" open modifier (I would try "bw" also...) Regards, Christian