How to write numbers to a file and make them readable between Java and C#
问题 I'm into a "compatibility" issue between two versions of the same program, the first one written in Java, the second it's a port in C#. My goal is to write some data to a file (for example, in Java), like a sequence of numbers, then to have the ability to read it in C#. Obviously, the operation should work in the reversed order. For example, I want to write 3 numbers in sequence, represented with the following schema: first number as one 'byte' (4 bit) second number as one 'integer' (32 bit)