home *** CD-ROM | disk | FTP | other *** search
- { Support code from Micro Cornucopia Magazine Issue #48
-
- Micro Cornucopia
- PO Box 223
- Bend, OR 97709 }
-
-
- program cfreq;
- uses crt;
-
- var f1 : file;
- b, i : byte;
- ba : array [0..255] of word;
- begin
- assign(f1, 'x1.dat');
- reset(f1, 1);
- for i := 0 to 255 do
- ba[i] := 0;
- while not eof(f1) do
- begin
- blockread(f1, b, 1);
- ba[b] := ba[b] + 1;
- end;
- clrscr;
- for i := 0 to 255 do
- begin
- writeln(i,' ',ba[i], ' ')
- end
- end.