How can I extract data (contents) from istream without using operator>>() ?.

5

1 Answer

If you want to read characters from the istream, then by using get and getline:

std::istream::get

std::istream::getline

For general reading you may want to use read:

std::istream::read

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.