D
DeveloperDave
Hi,
Using C++ I am trying to read x number of characters up to a delimiter
character and store them in a istringstream.
I am using the ifstream class to open a file.
Looking at the API I noticed a 'get' operator that took a reference to
a basic_streambuf as a parameter.
see http://www.cppreference.com/wiki/io...ww.cppreference.com/wiki/io/basic_istream/get
Anyway I was wondering is it possible to create a istringstream and
then get the underlying basic_streambuf, and pass it into this get
method.
I am struggling with the syntax, so if this is possible and someone
has an example I would appreciate it.
Cheers
Using C++ I am trying to read x number of characters up to a delimiter
character and store them in a istringstream.
I am using the ifstream class to open a file.
Looking at the API I noticed a 'get' operator that took a reference to
a basic_streambuf as a parameter.
see http://www.cppreference.com/wiki/io...ww.cppreference.com/wiki/io/basic_istream/get
Anyway I was wondering is it possible to create a istringstream and
then get the underlying basic_streambuf, and pass it into this get
method.
I am struggling with the syntax, so if this is possible and someone
has an example I would appreciate it.
Cheers