首页 > 焦点 > Symbian中如何操作ini文件
Symbian中如何操作ini文件
网上收集 2007/11/26 16:44:10 (200)
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();
//...
阅读(200) (责任编辑:城市网)
网页底部通用模块