fpc/utils/fpmc/dumpfile.pp
2003-02-14 21:59:21 +00:00

27 lines
354 B
ObjectPascal

program dumpfile;
Var
F : File of Byte;
Col : Integer;
B : Byte;
begin
Assign(F,Paramstr(1));
Reset(F);
Col:=1;
while not eof(f) do
begin
Read(F,B);
write(HexStr(B,2),' ');
Col:=Col+3;
If Col>72 then
begin
Writeln;
Col:=1;
end;
end;
Close(f);
If Col<>1 then
Writeln;
end.