reading 2 lines from IniFile

Posted by Lakkerw on Stack Overflow See other posts from Stack Overflow or by Lakkerw
Published on 2011-02-23T22:27:33Z Indexed on 2011/02/23 23:25 UTC
Read the original article Hit count: 268

Filed under:
|
|

Trying again. On advice, adding the piece of code that I do understand. I am fine with the fact that I have to save 4 bits of information in two lines like so:

IniFile.WriteString('TestSection','Name','Country');
IniFile.WriteString('TestSection','City','Street');

My question is more about loading this information back into the form. If in my IniFile I have saved for example the following code

[TestSection]
John=Uk
London=barlystreet
Mike=Spain
Madrid=eduardostrata
Emma=USA
New York=1st Avenue

Made up information in the IniFile. Added through the code above. Now my question is: How could I load for example, when I type in an edit box Mike, the rest of the belonging information.(Spain, Madrid,eduardostrata).

© Stack Overflow or respective owner

Related posts about delphi

Related posts about reading