# Minuit output to a txt file

**URL:** <https://root-forum.cern.ch/t/minuit-output-to-a-txt-file/50583>\
**Category:** Newbie\
**Created:** [June 29, 2022, 2:36am UTC](https://root-forum.cern.ch/t/minuit-output-to-a-txt-file/50583 "2022-06-29T02:36:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dil](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dil/32/26887_2.png) [@Dil](https://root-forum.cern.ch/u/Dil)\
**Post date:** [June 29, 2022, 2:36am UTC](https://root-forum.cern.ch/t/minuit-output-to-a-txt-file/50583/1 "2022-06-29T02:36:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [June 29, 2022, 5:09am UTC](https://root-forum.cern.ch/t/minuit-output-to-a-txt-file/50583/2 "2022-06-29T05:09:13Z")

</div>

[https://root.cern.ch/root/htmldoc/guides/users-guide/FittingHistograms.html](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

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

```
