I am trying to write a small utility to create a binary file that will simulate a file created by another closed application. I used hex editors to decrypt the format, I got stuck trying to figure out what the format / encoding is so that I can create it using C ++ or C #.
The file begins with the first four bytes: 01 00 and then FF FE. I understand that the file starts with SOH, followed by the byte order sign for the little endian. After these four bytes, the program appears to write a BSTR for each of the line fields from the application GUI.
Using C #, I created a unicode file that starts with FF FE, but I'm not sure how to insert the SOH character first.
I would be forever grateful if someone could provide information about the file format or encoding and why the file starts with the SOH symbol.
Thanks in advance.
source
share