Please read comments to this article:
GetPrivateProfileString function[
^]. You'll find there:
Adam L Wa wrote:
This function will not work if ini file contains only 1 entry
This might be specific to Unicode ini files, but I spent quite some time trying to figure out what I was doing wrong. It turns out I wasn't doing anything wrong, and this function has a bug. My ini file only needed one section and key, e.g.:
[SomeEntry]
Foo=Bar
You can write custom function too, which
1) opens an ini file
2) reads it content line by line
3) proceeds each line with
string functions[
^], like:
Instr[
^],
Mid[
^], etc.