2
This file is part of the Free Pascal run time library.
3
Copyright (c) 1999-2000 by the Free Pascal development team
5
reads and dumps a message file to screen.
7
See the file COPYING.FPC, included in this distribution,
8
for details about the copyright.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
**********************************************************************}
20
PCardinal = ^Cardinal;
25
I,J,Count,C,S : Cardinal;
29
Assign(F,Paramstr(1));
32
Writeln('Message count: ',Count);
33
S:=SizeOf(Cardinal)*Count+1;
44
Writeln('Error in ID: ',C,'<>ID',PI[I])
46
Writeln('Found ID ',C);
49
Writeln('Found offset : ',C);
55
Writeln('Found offset ',S,' at item ',i,' offset ',PO[I]);
56
For J:=1 to (S div 4)-1 do
65
Writeln('String (',J,') : ',Buf);
67
Writeln('Seqential read : ');
72
Writeln('Found offset ',S,' at item ',i,' offset ',FilePos(F));
73
For J:=1 to (S div 4)-1 do
82
Writeln('String (',J,') : ',Buf);