------ art_57251_15039712.1182241175370 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/19/07, Alin Popa <alin.popa / gmail.com> wrote: > > Hi guys, > > After some research I still cannot find a way how to see if a file is > plain text or binary. In fact I want to check if a file is plain text no > matter what characters are in it. > This thing may be possible by using ruby ? If you can't use 'file' directly, you should look at it's source and see how the detection works. I think CVS also detects text quite well. Thanks, > > Alin > > -- > Posted via http://www.ruby-forum.com/. > > -- I always thought Smalltalk would beat Java, I just didn't know it would be called 'Ruby' when it did. -- Kent Beck ------ art_57251_15039712.1182241175370--