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;