读书人

symbian os:读取文本中汉字的范例

发布时间: 2014-07-24 16:14:51 作者: rapoo

symbian os:读取文本中汉字的实例

_LIT(path,"C:\\ebooks.txt");                          TBuf8<299> rText;             RFileReadTextFileSeekL(path,rText,op_num);                          TText8 string[300];             Mem::Copy(string,rText.Ptr(),rText.Size());             string[rText.Size()]='\0';                                       //RFileWriteTextFileL(, TDes8& aBuffer)             HBufC16* msg = ToUnicodeConvertL(string);            // CAknInformationNote* InfoNote;             //InfoNote = new ( ELeave ) CAknInformationNote;             //InfoNote->ExecuteLD(*msg);            SetEditorText(*msg);            iEditor->DrawDeferred();                        delete msg;


读书人网 >操作系统

热点推荐