file=$TemporaryDirectory<>"test1";

BinaryWrite[file,12345,"Integer32"];

Close[file];

BinaryRead[file,"Integer32",ByteOrdering->$ByteOrdering]

Close[file];

BinaryRead[file,"Integer32",ByteOrdering->-$ByteOrdering]

Close[file];