Guys,
I have a
Java program that has the following function: - Receive a
string of 800 characters in Hexa format. After that, convert this string in Ascii format. Finally, write this string to a file in a determined directory with the extension ".rec".
However, the program is recording with an unknown number of characters. It is not recording the file with the content that should.
Below are the following: How should be the file being recorded. The format that is currently being recorded. And finally, the Java code where the program do the converting and recording the file.
What am I doing wrong?
Thanks,
Fernando
Below how should be the file being recorded
.ß÷Q¬˜À’Z!pÞ'Z1ÅF-ù>ÁÀ†çâwq
f@Ç’É8û½+ê‘w‰j/,÷DS¿Ê0Áô©p)A3òèËN½+ýy®¼·r0Zk ¨žE4CDMUÏøz߯`‰÷ý1làuÌ
Below the format in which it is being recorded
ß÷Q¬˜À’Z!pÞ'Z1Ã…F-ù>ÃÀ†çâwq
f@ÂǒÉ8û½+ê‘w‰j/,÷DS¿Ê0Ãô©p)A3òèËN½+ýy®¼·r0Zk ¨žE4CDMUÃøz߯`‰÷ý1là uÃŒ
Below the Java code where I do the converting and recording the file