From: Daniel Berger Date: 2009-09-20T18:12:28+09:00 Subject: Re: Determining if a file is binary or text James Masters wrote: > Hi all, > > I need to search text files for a given expression and flag a warning/ > error if that expression does not exist. I'm going to search a large > number of files using the Linux "find" command, so I won't know if > they are binary or text. require 'ptools' File.binary?(your_file) Regards, Dan