c++初试-文件流(9)
来源:互联网 发布:wit.ai api.ai 知乎 编辑:程序博客网 时间:2024/05/29 19:23
/* * file.cpp * * Created on: 2014年10月31日 * Author: Administrator */#include<iostream>#include<fstream>#include<string>using namespace std;int main(){//写文件string filename = "E:/aa.txt";ofstream fout(filename.c_str());fout << "hello world" << endl;fout.close();//读文件ifstream fin("E:/aa.txt");char ch;while(fin.get(ch)){cout << ch;}cout << endl;fin.close();return 0;}
0 0
- c++初试-文件流(9)
- 初试C++文件流
- C语言初试
- C++:创建线程初试
- XML文件解析初试Python
- java--IO流初试
- 初试Volley(一)
- 初试Volley(一)
- 初试cnn(1)
- 初试Kotlin(一)
- 初试OpenCV(Ubuntu)
- 初试
- 初试
- 初试
- 初试
- C语言链表初试(输出链表中的数、删除某个数)
- c语言词法分析初试(C++实现)
- 2017.11.05 周日 初试linux c 体会
- Android之Animation
- 在IE11下,地图无法加载、视频无法播放、Flash组件好像出问题
- 再次调试STM32F407+DP83848
- Java_反射_Class类(Method,Field,Constructor)
- NFC基本理论
- c++初试-文件流(9)
- 翻译:Linux的电源管理架构
- Java核心技术卷I:基础知识(原书第8版):14.4 线程属性
- 【翻译】Ext JS最新技巧——2014-10-30
- LeetCode 115 Count and Say
- Working with Group Policy Objects Programmatically
- Eclipse设置快车键
- 关于Activity的生命周期
- 观察者模式总结