I have the following code in my console application
std::cout << "\nEnter Id: ";
std::cout.flush();
std::wcin >> inId;
std::cout << "\nEnter Secret: ";
std::cout.flush();
std::wcin >> inSecret;
If i read the input from console i am getting the correct input. But if i redirected the input from a text file them I am getting empty(EOF) value. For MBCS it is working as expected.I couldn't figure out what is happening there in UNICODE. Can anyone help me on this? thanks in advance