How to know if a file is a text file

Luca Fabbri luca at keul.it
Sat Nov 14 11:02:29 EST 2009


Hi all.

I'm looking for a way to be able to load a generic file from the
system and understand if he is plain text.
The mimetype module has some nice methods, but for example it's not
working for file without extension.

Any suggestion?

-- 
-- luca



More information about the Python-list mailing list