Python3: Reading a text/binary mixed file

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Mon Mar 9 20:45:49 EDT 2015


Hi!

What is the best way to read a file that begins with some few text lines
and whose rest is a binary stream?

As an exmaple ... files .pnm.

Thanks for any comments/help on this.



More information about the Python-list mailing list