A weird request perhaps, but is it possible to combine formated and unformated input when using file streams?
What do I mean by this? Well, if you leave out the flag std::ios::binary the stream reads the characters formated, meaning if the next 3 characters are ' ', ' ' and 'A' and you read a char you don't get ' ' but 'A' since blankspace is skipped in formated input.
I want the functionality of reading formatted integers and such, but I also want to be able to read bytes as they appear in the file at the same time (for my own customized formated input methods).
Is this even possible?