dumpfile.pp 349 B

123456789101112131415161718192021222324252627
  1. program dumpfile;
  2. Var
  3. F : File of Byte;
  4. Col : Integer;
  5. B : Byte;
  6. begin
  7. Assign(F,Paramstr(1));
  8. Reset(F);
  9. Col:=1;
  10. while not eof(f) do
  11. begin
  12. Read(F,B);
  13. write(HexStr(B,2),' ');
  14. Col:=Col+3;
  15. If Col>72 then
  16. begin
  17. Writeln;
  18. Col:=1;
  19. end;
  20. end;
  21. Close(f);
  22. If Col<>1 then
  23. Writeln;
  24. end.