hey guys can you help me with this program....it will be really helpful for this poor gir if you guys help me with this program.




#include <fstream>
#include <iostream>
#include <cstdlib>

int main()
{
using namespace std;
ifstream in_stream;
ofstream out_stream;
cout<<"Enter any question:\n";
char question;
cin>>question;
in_stream.open("answer.dat");
if (in_stream.fail())
{
cout <<"Input file opening failed.\n";
exit(1);

}

out_stream.open("outfile.dat");
if(out_stream.fail())
{
cout << " Output file opening failed.\n";
exit(1);
}
char ch;
cin>>ch;
{
while(ch!='\n')
out_stream<<("sherpa.dat");
// else
// cout<<ch;
in_stream.get(ch);
}
return 0;

}