| |
Symbian中如何操作ini文件 |
|
时间: 2006-10-09 来自: |
 |
|
void CMyUi::ConstructL() { BaseConstructL(); RFs fileSession = Document()->Process()->FsSession(); CDictionaryStore* store = Application()->OpenIniFileLC(fileSession); if (store->IsPresentL(KKey1Uid)) { RDictionaryReadStream in; JAVA手机网[www.cnjm.net] in.OpenLC(*store, KKey1Uid); in >> *iMyConfig; CleanupStack: opAndDestroy(); JAVA手机网[www.cnjm.net]} else { iMyConfig->SetDefault(); RDictionaryWriteStream out; JAVA手机网[www.cnjm.net] out.AssignLC(*store, KKey1Uid); out << *iMyConfig; JAVA手机网[www.cnjm.net] out.CommitL(); CleanupStack: opAndDestroy(); store->CommitL(); } CleanupStack: opAndDestroy(); //... }
|
|
|
|
|
|
|
|