On Sat, 5 Oct 2002 15:38:40 +0900, Lloyd Zusman wrote:
>>Is there a file-type detection script available for Ruby, similar
>>to the unix 'file' program? At a minimum, is there a way in Ruby to
>>reliably tell the difference between a binary file format and a
>>text file format?
>Here's something in Ruby that I wrote to do that.  It's based on the
>algorithm that Perl uses to determine "textness" and "binariness":

Thanks. That'll be a good start to make sure that I don't run tidy on 
my JPGs (:

-austin
-- Austin Ziegler, austin / halostatue.ca on 2002.10.05 at 11.59.53