Hi,

-----Original Message-----
From: dima [mailto:dejan.dimic / gmail.com] 
Sent: Tuesday, August 21, 2007 8:50 AM
To: ruby-talk ML
Subject: Re: Test if file is binary ?

On Aug 21, 8:04 am, "Rebhan, Gilbert" <Gilbert.Reb... / huk-coburg.de>
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 ?

>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.

For example this information is needed to decide whether
cvs should handle that file / that fileextension as binary or ascii

Regards, Gilbert