RFile iFile;
TFileText fileText;
TInt err;
err = iFile.Open(iSession, KFileName, EFileRead);
if (err != KErrNone) {
User::Leave(err);
}
fileText.Set(iFile);
while ((fileText.Read(service) == KErrNone)
{...}
---------------------------------
when I run your program on an unicode version of the file it works. I guess TFileText only works with unicode files.
博客展示了Symbian环境下使用RFile和TFileText进行文件读取的代码,包括打开文件、设置文本读取对象等操作。还提到程序在Unicode版本文件上运行正常,推测TFileText仅适用于Unicode文件。
1099

被折叠的 条评论
为什么被折叠?



