Question:
Is there a Windows function or some quick wayget a list of the keys in an .ini file, such as:
[Section]Key1=xxxKey2=yyyKey3=mmmKey4=ppp
I want this: ‘Key1’, ‘Key2’, ‘Key3’, ‘Key4’
Answer:
There is a PFC service which is designed to do exactly this. The service you should look for is called pfc_n_cst_inifile and the function you need to call is of_getkeys.You pass the function the name of the ini file, the section you want the list of keys for and an unbound array of strings (passed by reference). The function will fillout the array for you.
lnc_ini.of_GetKeys( 'win.ini', 'drivers', ls_Keys )
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.























