std::ifstream fin( "file1.txt" ) ;
std::ofstream fout( "file2.txt" ) ;
fin >> std::noskipws ;
char ch ;
while( fin >> ch )
{
if( ch == '[' ) fout << 'x' ;
fout << ch ;
}
vijayan121 1,152 Posting Virtuoso
vijayan121 1,152 Posting Virtuoso
Joatmon commented: Solved my problem, thanks for the help +1