I am trying to write numbers to a binary file. The problem that I have is when I try to write a 10 it is preceded by a 13. I believe that this has something to do with the program thinking that I want to put in a return.
When I write:
newFile.put(26) ;
newFile.put(10) ;
newFile.put(0);
and hex dump. The result is:
1A 0D 0A 00
That 0D shouldn't be there.
Is there a better way to write numbers to file or a way to stop this from happening? Also I need the numbers in this order since a different program will be using the file.
When I write:
newFile.put(26) ;
newFile.put(10) ;
newFile.put(0);
and hex dump. The result is:
1A 0D 0A 00
That 0D shouldn't be there.
Is there a better way to write numbers to file or a way to stop this from happening? Also I need the numbers in this order since a different program will be using the file.
Comment