| 
    clear
   
    Syntax:
   #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. |