读取行:
提取到字符数组中的话用:
void main()
{
// string str;
char ch[200];
ifstream out("d:\\data.txt",ios::in);
while(!out.eof())
//getline(out,str);
out.getline(ch,200,'\n');
cout< } out.close(); }
}
out.close();