Reading binary files
Rami Chowdhury
rami.chowdhury at gmail.com
Mon Aug 24 10:41:09 EDT 2009
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.ross at 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)
More information about the Python-list
mailing list