bad
Syntax:
#include <fstream> bool bad(); The bad() function returns true if a fatal error with the current stream has occurred, false otherwise. |
#include <fstream> void clear( iostate flags = ios::goodbit );
The function clear() does two things:
The flags argument defaults to ios::goodbit, which means that by default, all flags will be cleared and ios::goodbit will be set.