#include <iostream>
#include <fstream>
using namespace std;
int main()
{
cout<<"hello world"<<endl;
char s[100];
ifstream in("a.txt");
if(!in)
return 0;
while(in.getline(s,100))
{
cout<<s<<endl;
}
in.close();
return 0;
}
#include <fstream>
using namespace std;
int main()
{
cout<<"hello world"<<endl;
char s[100];
ifstream in("a.txt");
if(!in)
return 0;
while(in.getline(s,100))
{
cout<<s<<endl;
}
in.close();
return 0;
}