Andrew Robert a écrit :
> Hi Everyone,
> 
> Is there a way to test if a file is binary or ascii within Python?
> 
> I'd prefer not to text against file extension.
> 
> Any help you can provide would be greatly appreciated.

May look at unix "file" command sources...


A+

L.Pointal.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to