首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian >> Symbian入门 >> 正文
流读取windows编写的txt文件
作者:beover19…    文章来源:Forum.Nokia.com    更新时间:2006-3-22 11:42:29
Reading transfers data from a file to a descriptor, and writing transfers data from a descriptor to a file.

Use RFile::Read() to read, and RFile::Write() to write.
Code:
// Open file1 _LIT(KMyFile,"c:\\documents\\file1"); RFile myFile; User::LeaveIfError(myFile.Open(fs,KMyFile,EFileShareExclusive|EFileWrite )); // Write to current file position: start of file _LIT8(KWriteBuf,"write data"); myFile.Write(KWriteBuf); // Read from position 0: start of file TBuf8<6> readBuf1; myFile.Read(0,readBuf1); // readBuf1 is now "write " // Read from current position TBuf8<4> readBuf2; myFile.Read(readBuf2); // readBuf2 is now "data"
相关文章:
cpp命令
如何在进程间共享文件句柄
如何在SYMBIAN60中编写DLL
实现手机中应用程序的开机自启动
Python S60 记事本源码
电话簿与vCard的格式转换
UIQ 2.x上保存网址为书签的解决方案
安装选项FILENULL(FN)无法工作的原因
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号