C
continuation.nomad
I feel like this should be really easy but I'm drawing a blank here.
I have an fstream, it was opened with ios_base::in | ios_base:
ut. I
want to REPLACE the next character in the stream with something else.
It doesn't matter whether or not the stream advances by one character
as a result of this, but it must not advance by 2 or more
characters.
Isn't there an easy way to do this, or for that matter a way to do it
at all? I've tried tons of combinations of put, ignore, putback,
read, and write and nothing's working.
I have an fstream, it was opened with ios_base::in | ios_base:
want to REPLACE the next character in the stream with something else.
It doesn't matter whether or not the stream advances by one character
as a result of this, but it must not advance by 2 or more
characters.
Isn't there an easy way to do this, or for that matter a way to do it
at all? I've tried tons of combinations of put, ignore, putback,
read, and write and nothing's working.