daz said: > > It's OK on Windows 98se + ruby 1.8.3 (2005-05-12) [i586-bccwin32] > > 00000000h: 00 00 00 00 01 ; ..... > > File.open('output.out', 'rb') {|fd| puts fd.read.dump} > > #-> "\000\000\000\000\001" > > Your script is OK. > Make sure you are using a reliable viewer to confirm the result. > If there's still a problem, please let us hear. It is also fine on Windows XPsp2 with ruby 1.8.2 (2004-12-25) [i386-mswin32]. Ryan