文件操作文件的读入
来源:互联网 发布:linux系统重启命令 编辑:程序博客网 时间:2024/04/28 01:14
#include <iostream>
using namespace std;
#include <fstream>
#include <cstdlib>
int main()
{
char ch;
fstream readFile;
char input[81];
readFile.open("murphy.txt",ios::in);
if (readFile.fail())
{
cout << "打开文件失败!"<<endl;
}
while(!readFile.eof())
{
// readFile >> input;
// readFile.getline(input,81,'%');
readFile.get(ch);
if (readFile.fail())
{
break;
}
cout << ch;
}
readFile.close();
return 0;
}
- 文件操作文件的读入
- 文件操作文件的读入
- C++读入文件操作
- 文件操作--二进制文件读入
- 文件操作--二进制文件读入
- R 中读入文件的基本操作
- python操作excel读入文件
- 文件的读入读出
- 文件的读入
- 文件的读入读出
- 文件读入
- 文件的读入与读出
- java读入文件的方法
- 好用的文件读入
- 文件读入操作 信息系统 c语言版
- TClientDataSet 操作和读入 xml 文件
- YTU 2924: 文件操作--二进制文件读入
- YTU 2925: 文件操作--文本文件读入
- Oracle 常规问题1000问
- 8个开源软件话题网站
- 无法连接局域网的解决方法之一 Chrome
- php使用FCK配置
- poj 2253 Frogger
- 文件操作文件的读入
- hashcode()的作用
- 文件操作文件的读入
- U-boot-2009.03移植之十:第一阶段之修改/board/samsung/mini2440/mini2440.c
- vc 曲线图 波形图。用VC++做了一个波形图。波形曲线由随机数生成。感觉还不错。见图片。
- 怎么用VS2008 编C++程序?
- 11.VC(custom)-结束已知应用程序名的进程
- 人才是企业发展之本
- Foundation Kit「Learn Objective-C on Mac