Well good luck.
Without a controlled/known output from the C++ program, it will be hard/impossible to write a java program to mimic the C++ program.
If you can have the C++ program write out a known sample of data to a file, we can write a java program to write the same bits to a file given the same sample of data.
I shouldnt have said anything about a C++ program.....
I simply want to write a array full of ints to a binary file. Nothing else. Forget about the C++ program.....
(Didnt work today as it is a holiday) I writed the writeInt method and lets see if the PLC reads it.