Debian Codegraph @

Data_Generators/makedata/namemake.pas

raw
1 program namemake;
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: Planet names
21
22 Copyright:
23 1994 Channel 7, Destiny: Virtual
24 2020 Matija Nalis <[email protected]>
25 **********************************************}
26
27 {$PACKRECORDS 1}
28
29 type
30 nametype= string[15];
31 var
32 i,j: integer;
33 name: nametype;
34 ft: text;
35 f: file of nametype;
36
37 begin
38 assign(ft,'Data_Generators/makedata/newnames.txt');
39 reset(ft);
40 assign(f,'data/planname.txt');
41 rewrite(f);
42 for i:=1 to 750 do
43 begin
44 readln(ft,name);
45 if length(name)<15 then
46 for j:=length(name)+1 to 15 do name[j]:=' ';
47 name[0]:=#12;
48 write(f,name);
49 writeln(name);
50 end;
51 close(ft);
52 close(f);
53 end.
54