Bhushan Muttha

Bhushan Muttha

  • NA
  • 75
  • 483

Binary File Parser with random data

Jul 17 2019 1:29 AM
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)); 
 

Answers (1)