Testing for file type

Andrew Robert andrew.arobert at gmail.com
Mon May 22 10:27:09 EDT 2006


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.

Thanks,
Andy



More information about the Python-list mailing list