Re: [Tutor] reading binary file on windows and linux

2010-05-09 Thread spir ☣
On Sun, 9 May 2010 19:33:51 +0200 Jan Jansen wrote: > Hello, > > I've got some trouble reading binary files with struct.unpack on windows. > According to the documentation of the binary file's content, at the > beginning there're some simple bytes (labeled as 'UChar: 8-bit unsigned > byte'). Wit

Re: [Tutor] reading binary file on windows and linux

2010-05-09 Thread Steven D'Aprano
On Mon, 10 May 2010 03:33:51 am Jan Jansen wrote: > Hello, > > I've got some trouble reading binary files with struct.unpack on > windows. [...] > The code I'm using to check the first 80 bytes of the file is: > > import struct > import sys > > with open(sys.argv[1]) as source: You're opening th

Re: [Tutor] reading binary file on windows and linux

2010-05-09 Thread Hugo Arts
On Sun, May 9, 2010 at 7:33 PM, Jan Jansen wrote: > Hello, > > I've got some trouble reading binary files with struct.unpack on windows. > According to the documentation of the binary file's content, at the > beginning there're some simple bytes (labeled as 'UChar: 8-bit unsigned > byte'). Within

Re: [Tutor] reading binary file on windows and linux

2010-05-09 Thread Adam Bark
On 9 May 2010 18:33, Jan Jansen wrote: > Hello, > > I've got some trouble reading binary files with struct.unpack on windows. > According to the documentation of the binary file's content, at the > beginning there're some simple bytes (labeled as 'UChar: 8-bit unsigned > byte'). Within those byte