binary file reading and converting
-
Hi, So I was given this data file, which i think is in binary format and i have to extract data from it starting at an offset of 1000. I tried opening the file in Wordpad and really have no clue how its encoded. I was able to mimic the way it was displayed in wordpad using a streamreader with a text encoding of utf7 then writing it to the console. Each value I'm trying to extract consists of 2 bytes and I have to convert this into a positive/negative integer. I tried many ways of doing this but was unable to get the right result. I noticed first of all, that the values i'm getting largely consist of zeros and all positives which is way wrong. The whole idea of binary files are so foreign to me and i have no clue where to begin on this. I really wish they had started us on C in school rather than java...:sigh: thanks in advance