type conversion problem



I get type mismatch errors (untyped - string) on the following

If FileExists('fontman.rc') Then
//Read config file
begin
AssignFile(ConfigFile,'fontman.rc');
Reset(ConfigFile);
While not EOF(ConfigFile) do
begin
Lookingfor:= ReadLn(ConfigFile, Configtext);
Lookingfor:= AnsiRightStr(Lookingfor, MyFonts=);
Lookingfor := Trim(Lookingfor);
// Do something with result e.g.
ShowMessage(Lookingfor);
end;
end
Else

How can I solve the problem of getting the right type?
I've looked for something to convert the output but failed so far.

Martin S

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.