iphone 讀寫配置檔案

2021-05-28 12:37:14 字數 362 閱讀 7341

-(void) writeconfigfile:(nsdata *)data fromfile:(nsstring*)strfile 

}-(nsmutabledictionary*) readconfigfile:(nsstring*)file

-(void) setvaluebykey:(nsstring *)value modifybyvalue:(nsstring*)key fromfile:(nsstring*)file

-(nsstring*)getvaluebykey:(nsstring*)key fromfile:(nsstring*)file

return object;  

}  

讀寫配置檔案

windows作業系統專門為此提供了6個api函式來對配置設定檔案進行讀 寫 getprivateprofileint 從私有初始化檔案獲取整型數值 getprivateprofilestring 從私有初始化檔案獲取字串型值 getprofileint 從win.ini 獲取整數值 getprof...

讀寫配置檔案

procedure curstepchanged curstep tsetupstep varsetupname string inipath string begin case curstep of ssinstall 複製檔案前 begin end sspostinstall 完成複製 begi...

讀寫配置檔案

寫配置檔案 include include include include using std cout using std endl int main int nlen strlen d myinifile.ini 16 nlen strlen lppath 0 strcpy s lppath,s...