void __fastcall ReadSectionValues(
const System::UnicodeString Section,
System::Classes::TStrings* Strings
)
is a method, which gets all lines of ini-file section with name Section
and stores them in TStrings-object Strings
. Note that these strings have format name=value
.
TStrings class has two access properties Names and Values. Their parse algorithm is very simple. If you get stringsObject->Values[1]
it takes second line from stringsObject
and splits it into two strings on =
(or other value of NameValueSeparator
property of stringsObject
). The string to the left of =
(separator) is returned as name (by property Name
) and the string to the right of =
is returned as value (by property Value
).