try
try
AssignFile(Settings, SettingsFile);
Reset(Settings); // This generates the exception
//Statements
except
on e: EFileNotFoundException do // This code check fails and the else part is executed
writeln (DateToSTR(Date),':', TimeToSTR(Time),':', 'File Not Found :'+SettingsFile);
else
Raise; // This executes
end;
finally
try // I'm not sure this is the correct approach....
Close(Settings);
except
on E: Exception do writeln (DateToSTR(Date),':', TimeToSTR(Time),':', 'File Not Closed :'+SettingsFile); // This executes and writes to the console.
end;