Alex Young wrote:
> Alin Popa 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 ?
> 
> I think so, but it's a little unclear exactly what you're trying to
> achieve.  Do you have an example?

I'm trying to do a replace in file for some text but I don't want to 
consider files like archives or other binary files.

-- 
Posted via http://www.ruby-forum.com/.