How to use API function write configuration file.
For example, I want to control the application state value written to the configuration file, next time you start to reading the configuration file when,please helping me,thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ken HPosted Sep 17, 2011, 8:53 AM
I want used Application Programming Interface method write configuration file.
such as:
[DllImport("kernel32")]
public static extern long WritePrivateProfileString(string section, string key, string val, string filePath);//how to write
public static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath);//how to reading
thanks.
Prabhu RajaPosted Sep 17, 2011, 12:50 AM
Try this. Click Here
--------------------------------------------------
If this post helps you, then mark as "Correct Answer"
Thank You