I have begun studying C++ file processing, ofstream, ifstream and all that. I was wondering though how practical this stuff would be when everything is usually stored in databases?

Doesn't everyone have the software connect to, lets say oracle or postgres and let the database do all the file work? Or are there circumstances where C++ file processing would be useful?