home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
UTILITY
/
USTATV20.ARJ
/
READINIT.PRO
< prev
next >
Wrap
Text File
|
1988-12-15
|
3KB
|
73 lines
Assign (configfile, 'CONFIG.DAT');
{$I-}
Reset (configfile);
If IORESULT <> 0
then
Begin
Writeln (' Sorry, I can''t find CONFIG.DAT. You must run USERSTAT from');
Writeln (' the Main BBS directory. (ie. The same place that BBS.EXE and');
Writeln (' CONFIG.DAT are.) Contact 1@16 ''The Jolly German Giant''');
Writeln (' for more detailed help. Abnormal Program Termination. NOT FND');
Halt;
End;
Seek (configfile, 123);
Count := 1;
Data := 'A';
Repeat
Read (configfile, Data);
If IORESULT <> 0
then
Begin
Writeln (' CONFIG.DAT FILE IS CORRUPTED cannot continue!');
Writeln (' Please contact 1@16, The Jolly German Giant for');
Writeln (' more help. Abnormal Program Termination. SHRT FILE');
Halt;
End;
If Ord (Data) <> 0
then
Begin
gfilepath [Count] := data;
gfilepath [0] := Chr (Count);
Count := Count + 1;
End;
Until (Ord (Data) = 0) or (EOF (configfile));
If Ord (Data) <> 0
then
Begin
Writeln (' CONFIG.DAT FILE IS CORRUPTED cannot continue!');
Writeln (' Please contact 1@16, The Jolly German Giant for');
Writeln (' more help. Abnormal Program Termination. SHRT FILE 2');
Halt;
End;
Seek (configfile, 204);
Count := 1;
Data := 'A';
Repeat
Read (configfile, Data);
If IORESULT <> 0
then
Begin
Writeln (' CONFIG.DAT FILE IS CORRUPTED cannot continue!');
Writeln (' Please contact 1@16, The Jolly German Giant for');
Writeln (' more help. Abnormal Program Termination. SHRT FILE');
Halt;
End;
If Ord (Data) <> 0
then
Begin
datapath [Count] := data;
datapath [0] := Chr (Count);
Count := Count + 1;
End;
Until (Ord (Data) = 0) or (EOF (configfile));
If Ord (Data) <> 0
then
Begin
Writeln (' CONFIG.DAT FILE IS CORRUPTED cannot continue!');
Writeln (' Please contact 1@16, The Jolly German Giant for');
Writeln (' more help. Abnormal Program Termination. SHRT FILE 2');
Halt;
End;
{$I+}
Close (configfile);