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