Fixed #22257 -- Added file output option to dumpdata command.