WhoCares357
2009-04-11 19:33:00
I'm trying to make an ini file and then checking if it exists.
It outputs "does not exist".
Am I using it wrong or is it broken?
program New;
var
FileLoc, FileName: String;
begin
FileLoc := AppPath + 'Scripts\scriptv5\';
FileName := 'MainForm.ini';
WriteINI('SRL-Stats', 'SRLID', 'name', FileLoc + FileName);
if (FileExists(AppPath + FileName)) then
begin
WriteLn('exists');
end else
WriteLn('does not exist');
end.It outputs "does not exist".
Am I using it wrong or is it broken?