The built-in file type deals with this just fine. You can simply specify when opening the file that it is to be opened as binary:

http://docs.python.org/library/functions.html#open

On Mon, 24 Aug 2009 07:35:09 -0700, Ronn Ross <ronn.r...@gmail.com> wrote:

I need to read a binary file. When I open it up in a text editor it is just
junk. Does Python have a class to help with this?



--
Rami Chowdhury
"Never attribute to malice that which can be attributed to stupidity" -- Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to