I have a java project that serializes some objects and ints into a file with functions such as
ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeInt(RANK_SIZE); oos.writeObject(_firstArray); oos.writeObject(_level[3]); oos.writeObject(_level[4]); ...
Now itβs hard for me to deserialize this file with C # (I tried BinaryFormatter ), since it, apparently, can only deserialize the whole file into one object (or arrays, but I have different objects with different lengths).
At first, I tried to transfer the creation of these files to C #, but failed. These files are small, and I do not have to generate them myself.
Do I need to change the way I create these files in Java, or can I deserialize it in some way?
source share