mdqp: Support save result to file