An fstream is a stream that corresponds to a file.
Note that fstream inherits from from istream and ostream. This means fstream can perform both input and output operations.
The fstream class specializes in file operations. As such, it implements the open, close and is_open methods for file operations.