会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码如诗
小楼一夜听春雨
博客园
首页
新随笔
联系
订阅
管理
2014年10月16日
c++中ifstream一次读取整个文件
摘要: c++中一次读取整个文件的内容的方法:读取至char*的情况std::ifstream t; int length; t.open("file.txt"); // open input file t.seekg(0, std::ios::end); // go to the e...
阅读全文
posted @ 2014-10-16 11:38 小 楼 一 夜 听 春 雨
阅读(80754)
评论(2)
推荐(4)
公告