1#include <iostream>2#include <fstream>34voidmain()5{6std::ifstream fin("F:\\1.txt");//创建读取文件流78for(inti =0; i <4; i++)9{10charstr[100] = {0};11fin.getline(str,100);//从流中提取一行字符12std::cout << str << std::endl;//打印13}1415fin.close();//关闭文件161...