在做項目過程中
INI文件的存儲方式如下
view plainprint?
[section] key=value讀取方法
view plainprint?
public static class ReadnIni { private static iniPath=ini的路徑
[DllImport(
private static extern int GetPrivateProfileString(string iniAppName
private static string ReadString(string section
{ StringBuilder temp = new StringBuilder(要讀出的內容的長度)
public static Hashtable ReadIniListKeys(string section
{ Hashtable keyValueHash = new Hashtable()
{ keyValueHash
public static string ReadIniKeys(string section
{ return ReadString(section
view plainprint?
[DllImport(
From:http://tw.wingwit.com/Article/program/net/201311/13599.html