If your file has more than 50 characters, your program corrupts memory.
Once i reaches 50, all bets are off as to what will happen.Code:wchar_t arry[50]; //... int i=0; while ( ! inputfile.eof() ) { arry[i] = inputfile.get();
Regards,
Paul McKenzie




Reply With Quote