private void btn_Click(object sender, EventArgs e) { byte[] data = File.ReadAllBytes("a.txt"); int[] totals = new int[256]; foreach (byte in data) { ++totals[b]; } }
foreach(byte value in data) ++totals[value];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)