Bobzilla69
12-02-2011, 09:39 PM
Hey,
i am tweaking a procedure i made for the MSI extra but it doesnt seem to work.
all that happens is it freezes, can some one confirm/check this please.
program PRS;
{$i SRL/SRL.scar}
var
PRS_Accounts: Integer;
const
PRS_Path = IncludePath + 'PRS\';
Procedure Bobzilla_CheckFile;
begin
try
if FileExists(PRS_Path + 'PRS.xml') then
begin
Writeln('File all ready created');
PRS_Accounts:= OpenFile(PRS_Path + 'PRS.xml' , False);
CloseFile(PRS_Accounts);
end else
begin
WriteLn('File not Found, Creating new file')
PRS_Accounts := CreateFile(PRS_Path + 'PRS.xml');
CloseFile(PRS_Accounts);
end;
except
WriteLn('Bobzilla_CheckFile: ' + ExceptionToString(ExceptionType, ExceptionParam));
end;
end;
begin
setupsrl;
Bobzilla_CheckFile;
end.
i am tweaking a procedure i made for the MSI extra but it doesnt seem to work.
all that happens is it freezes, can some one confirm/check this please.
program PRS;
{$i SRL/SRL.scar}
var
PRS_Accounts: Integer;
const
PRS_Path = IncludePath + 'PRS\';
Procedure Bobzilla_CheckFile;
begin
try
if FileExists(PRS_Path + 'PRS.xml') then
begin
Writeln('File all ready created');
PRS_Accounts:= OpenFile(PRS_Path + 'PRS.xml' , False);
CloseFile(PRS_Accounts);
end else
begin
WriteLn('File not Found, Creating new file')
PRS_Accounts := CreateFile(PRS_Path + 'PRS.xml');
CloseFile(PRS_Accounts);
end;
except
WriteLn('Bobzilla_CheckFile: ' + ExceptionToString(ExceptionType, ExceptionParam));
end;
end;
begin
setupsrl;
Bobzilla_CheckFile;
end.