hi..
i write this statement there is no errors but it not showing me the out put
this is the my code:
#include<fstream>
#include<iostream>
using namespace std;
int main()
{
fstream infile;
fstream outfile;
infile.open( "classnames.txt",ios::in );
outfile.open( "bufferednames.txt",ios::out );
infile.unsetf( ios::skipws );
int ch;
for( int i=0; i<4; i++)
{
infile >> ch;
while( ch != '\n' )
{
outfile << ch;
infile >> ch;
}
outfile << " - ";
}
infile.close();
outfile.close();
return 0;
}
i couldn't find the mistake..
please help..