Just thinking why they tend to call Delphi a separate programming language, unless there is actually a separate language. I used to use Delphi, and it is essentially Visual Pascal. I still have Delphi 4 on my computer.
{Searches WKT file (FileName) for specified Section, returns TRUE if found}
function CheckForValidKit(FileName, Section: string): boolean;
var
TheFile: text;
s: string;
begin
Result:=False;
Section:='[' + Trim(UpperCase(Section)) + ']';
AssignFile(TheFile, FileName);
Reset(TheFile);
while (not Eof(TheFile)) and (not Result) do
begin
Readln(TheFile, s);
if UpperCase(s) = Section then
Result:=True;
end;
CloseFile(TheFile);
end;