D
dornick
So I want to do the above, and I really, REALLY don't want to rewrite
the entire file. I've been working on it for a while now, and can't
for the life of me get it functioning. Basically, I want to replace
the last text character of a certain line.
So far all I've done has centered around trying to put the "put"
pointer write before the character to write (ban pun, I know). But
when I tried to use put(), nothing happened and a call to bad()
afterward revealed the stream to be messed up. The spot I could get it
to work was when I did no file reading from the start. So I tried
making a new stream for output only, and it just erased the file. Argh!
If any of you guys could help me, I'd be very grateful, and would...
well... say thank you.
the entire file. I've been working on it for a while now, and can't
for the life of me get it functioning. Basically, I want to replace
the last text character of a certain line.
So far all I've done has centered around trying to put the "put"
pointer write before the character to write (ban pun, I know). But
when I tried to use put(), nothing happened and a call to bad()
afterward revealed the stream to be messed up. The spot I could get it
to work was when I did no file reading from the start. So I tried
making a new stream for output only, and it just erased the file. Argh!
If any of you guys could help me, I'd be very grateful, and would...
well... say thank you.