D
drmario
I have a program that opens a text file, reads data in (using
exclusively ifstream::get(), ifstream:
eek(), ifstream::ignore(),
ifstream::clear(), and ifstream& operator >>), crunch some #s, output data,
close the file.
Is there a function I can use to directly access the buffer associated with
the streambuff of my ifstream object?
I'm getting input failure and I can't figure out why. So I wanna go to
the step directly before the failure, and then say "show me everything
currently in the input buffer". I know, I know I can fix this by just
changing my algorithm. I don't want to. I want to know why what I'm doing
isn't working, and fix it. Then I'll change it
If you like Windows
more than UNIX you may be asking yourself "Why the hell would you wanna know
that, instead of just changing it?" lol.
Thanks in advance,
Mario
exclusively ifstream::get(), ifstream:
ifstream::clear(), and ifstream& operator >>), crunch some #s, output data,
close the file.
Is there a function I can use to directly access the buffer associated with
the streambuff of my ifstream object?
I'm getting input failure and I can't figure out why. So I wanna go to
the step directly before the failure, and then say "show me everything
currently in the input buffer". I know, I know I can fix this by just
changing my algorithm. I don't want to. I want to know why what I'm doing
isn't working, and fix it. Then I'll change it
more than UNIX you may be asking yourself "Why the hell would you wanna know
that, instead of just changing it?" lol.
Thanks in advance,
Mario