tags:

views:

102

answers:

1

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

+5  A: 

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

http://www.cppreference.com/wiki/io/get

http://www.cppreference.com/wiki/io/getline

For general reading you may want to use read:

http://www.cppreference.com/wiki/io/read

Christian