delphi的帮助,是读一个段中的键名的。
Reads all the key names from a specified section of an INI file into a string list.
procedure ReadSection (const Section: string;
Strings: TStrings);
override;
Description
Call ReadSection to retrieve the names of all keys within a specified section of an INI file into a string list object.
Section identifies the section from which to retrieve a list of key names. Strings specifies the string object to hold the retrieved names. Strings can point to a TString object such as a string list, or to a component property, such as Items for a TListBox component, that is a TString object itself.
至于读键值,用个FOR循环吧。