From: dima Date: 2007-08-21T15:49:58+09:00 Subject: Re: Test if file is binary ? On Aug 21, 8:04 am, "Rebhan, Gilbert" wrote: > Hi , > > how to test if a file is binary or not ? > > There ain't something like File.binary = > NoMethodError: undefined method `binary?' for File:Class > > Any ideas or libraries available ? > > Regards, Gilbert What to you need to achieve with this is_binary? method? All files are just collection of bytes, so in a perspective they all are binary. We interpret them as suites our needs.