dumpTask to file