All your data has sequence of two bytes.
Use the following code block
int[] ReadFile(string filename) {
return (from line in System.IO.File.ReadAllLines(filename)
from part in line.Trim().Split('.')
select Int32.Parse(part, System.Globalization.NumberStyles.HexNumber)).ToArray();
}
Muthukrishnan Ramasamy
net4.rmkrishnan.net
Use only what you need, Reduce global warming
No comments:
Post a Comment