Skip to content

Binary File Parser with random data

Bhushan Muttha

Asked Jul 16, 2019, 9:29 PM EDT1 answer
Share
LinkedInX
Hi ,
I have various bonary files and i want to parse those with generic logic . 
 
can someone help on this .
 
Currently i using sperate logic for each file 
 
Example :
 
byte[] byteBuffer = File.ReadAllBytes(RESTAppPath);
return new List<string>(System.Text.Encoding.UTF8.GetString(byteBuffer).Substring(254).Trim('\0').Split(new string[] { "\u0003"@\0\0\u0004" }, StringSplitOptions.None)); 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply