Alex Mr wrote:
> I wanted to see if anybody can help me to modify it so that it takes its
> input from a file (text) and write its output also to a file (binary)

Use the builtin File class.
-- 
Posted via http://www.ruby-forum.com/.