On Thu, Mar 5, 2009 at 7:26 AM, Evan <xdi...@gmail.com> wrote:
> Hello ~
>
> I'm new with python,  what my problem is, I have a binary file, I want
> to read first 2 bytes and convert it to host byte order, then write it
> to another file.

Have you checked out socket.htons, socket.ntohs, etc ?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to