problem when Java and C++ talk with each other
<p>Hey Guys, I have a program in C++ and it writes a binary file
on disk. Then I use a Java program to read the number. The problem
is the number read is different from the number written... Say, I 
write an integer 4 using c++ and get back 67108864 when use JAVA to read it
 ( using readint() ) ... I suspect its due to big or small endian. Do you have 
any simple solutions to solve this?</p>

<p>Thanks a lot!!!</p>
