arm-linux

http://armboard.taobao.com/

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年5月13日

摘要: QFile本身有copy函数,在这里使用QTextStream实现一下。QFile sourceFile("test.txt");QFile targetFile("readtext.txt");if(sourceFile.open(QIODevice::ReadOnly | QIODevice::Truncate)& targetFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) { QTextStream in(&sourceFile); QTextStream out(&am 阅读全文
posted @ 2010-05-13 15:30 arm-linux 阅读(400) 评论(0) 推荐(0) 编辑