When and why does ios::badbit get set on an input or output operation on a file with an ifstream or ofstream?
I did a little Googling to try to answer this on my own, but didn't really find anything explaining in detail when and why this happens.
Thanks in advance.
EDIT: Hmm...it looks like one of the reasons is hardware failure. I hope that doesn't indicate there's something wrong with my computer...