Original Post
I know Data Input streams and other streams That I know of read in reverse byte order but are there any that read in regular byte order? like C++ does
Quote:
Original post by TempHolder
Iam saying since you know lets say you write a program in C++ that creates a file for you. In there you store a Integer(4 Bytes) being in this order
A,B,C,D
but java reads and writes the bytes high byte first so itll turn into somethig like this
D,C,B,A
I want to know if theres a way to read it in regular byte order like how C++ wrote it.
Quote:
Original post by TempHolder
Iam saying since you know lets say you write a program in C++ that creates a file for you. In there you store a Integer(4 Bytes) being in this order
A,B,C,D
but java reads and writes the bytes high byte first so itll turn into somethig like this
D,C,B,A
I want to know if theres a way to read it in regular byte order like how C++ wrote it.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more