Minuit output to a txt file

Hello all,

May be this is a simple question.
Is there a way to write Minuit output(terminal output) to a .txt/pdf file?
I have a long output.It’s easy to check results in a file instead of terminal?

Thanks
Dil

https://root.cern.ch/root/htmldoc/guides/users-guide/FittingHistograms.html
search for the section on TFitResult (section 7.7.7 currently) and see the example getting and printing a TFitResultPtr. You can redirect the output of Print with

root [] .> dump.txt
r->Print("V");
.>
root []