Главная страница | назад





Article #17828: Making ini file changes permanent.

 Question and Answer Database
FAQ2828D.txt Making ini file changes permanent.
Category :Windows API
Platform :All
Product :All 32 bit
Question:
After writing to a ini file, how can the ini file cache be flushed
so the changes made are permanent?
Answer:
Call the Windows API function WriteProfileString() or
WritePrivateProfileString() and pass nil parameters for the
section, key, and string values.
Example:
WriteProfileString(nil, nil, nil);
WritePrivateProfileString(nil, nil, nil, FileName);
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99