Debian Codegraph @

Data_Generators/makedata/scanmake.pas

raw
1 program generatecargodata;
2 (********************************************************************
3 This file is part of Ironseed.
4
5 Ironseed is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Ironseed 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. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with Ironseed. If not, see <https://www.gnu.org/licenses/>.
17 ********************************************************************)
18
19 {*********************************************
20 Data Generator: scandata.txt
21
22 Copyright:
23 1994 Channel 7, Destiny: Virtual
24 2020 Matija Nalis <[email protected]>
25 **********************************************}
26
27 {$PACKRECORDS 1}
28
29 type
30 scantype= array[1..12] of byte;
31 var
32 f: file of scantype;
33 ft: text;
34 j,i: integer;
35 scan: scantype;
36
37 begin
38 {assign(f,'data/scan.dta');
39 reset(f);
40 assign(ft,'Data_Generators/makedata/scandata.txt');
41 reset(ft);}
42 assign(f,'data/scan.dta');
43 rewrite(f);
44 assign(ft,'Data_Generators/makedata/scandata.txt');
45 reset(ft);
46 for i:=1 to 17 do
47 begin
48 for j:=1 to 11 do read(ft,scan[j]);
49 readln(ft,scan[12]);
50 write(f,scan);
51 end;
52 close(f);
53 close(ft);
54 end.