Hi - Thanks for previous help, very useful.

At this point I have a problem:

I run Zlib (a compression class) on a string. It outputs a string of bytes 
(binary) Call it bout.  (bout = Zlib::Deflate.deflate(instr) )
I go bout.length It is 19994
Then I open a f = File.new(filename, "a")
I go f.write(bout)

At this point, the file is bigger than 19994.

What gives??

I know this is something simple, can anyone tell me what is going on?

(I tried "ab"  for the mode, but didn't help.)

Thanks in advance for any help!
John B