首页 > 焦点 > 移动开发之文件保存
移动开发之文件保存
网上收集 2007/11/26 16:45:28 (207)

一些数据保存到文件中去,每个变量都保存在记事本文件中的一行,每一行记忆个变量的值。

RFile file;
// open the file here ...
TFileText txtfile;
txtfile.Set(file);
// convert your data to a descripter ...

// this operation appends a line delimiter to the descriptor
txtfile.Write(data);

// Of cource TFileText::Read() is the reverse operation which read a whole line.


 

阅读(207) (责任编辑:城市网)
网页底部通用模块