Problem reading an Integer in java that was written using python’s struct.pack method
<p>First I write the integer using python:<br />
<code>out.write( struct.pack("&gt;i", int(i)) );</code></p>

<p>I then read the integer using <code>DataInputStream.readInt()</code> in Java.<br />
I works but when it tries to read the number 10, and probably some other numbers too,
it starts to read garbage.<br />
Reading the numbers:<br />
<code>0, 4, 5, 0, 5, 13, 10, 1, 5, 6</code><br />
Java reads:<br />
<code>0, 4, 5, 0, 5, 13, 167772160, 16777216, 83886080</code>  </p>

<p>What am I doing wrong?</p>
