From: Pierre Baillet Date: 2003-06-03T20:38:13+09:00 Subject: Re: file I/O: how can I disable auto-convert of the 2-byte sequence 0x0D, 0x0A into a single byte '\n'? On Tue, Jun 03, 2003, Polscheit, Frank wrote: > > # input file "test.dat" contains 2 bytes: 0x0D and 0x0A > # the result file should contain 0x0A 0x0D in this example > > dest = File.new("test.dat", "r") Have you tried switching to binary mode ? dest.binmode Cheers ! -- Pierre Baillet Avec un escalier pr�vu pour la mont�e, on reussi souvent � monter plus bas qu'on ne serait descendu avec un escalier pr�vu pour la descente. Devise Shadok