How do I write to a pre-specified binary file format in Java that I can share with another computer that will parse it (and other computer is not using Java)? The file format has longs, floats, and some bitfields. This is a file that the Java program will write data to and then share with another computer. Is there a better way to do this than with a binary file format?
Share
If it doesn’t have to be binary you can use XML or JSON. If it has to be binary, use Protocol Buffers.