[Tutor] file io: reading an int32 at the end of a file?

Alan G alan.gauld at freenet.co.uk
Thu Jul 7 02:21:40 CEST 2005

... but this doesn't seem to work.  The value that Python returns is:


but I know from similar code in Matlab that the correct sequence is:

   64 25 1 0

Can someone point out my error?

That looks like the same thing to me. 
The ascii code for '@' is 64...
hex 19 = decimal 25

Why do you think there is a problem?

Alan G
Author of the Learn to Program web tutor

More information about the Tutor mailing list