Hi Vic,
just redirect the output using > or >> like in the unix shell:
root [1] .x fit.C > out.txt
root [2] printf("\nfit of run 1\n"); >> out.txt
note that the ; is mandatory in case of C++ statements.
Cheers, Fons.
Victoria Wright wrote:
>
> Hi,
>
> I was wondering if someone could answer a small question for me?
>
> Can I write all the fit results that scroll up when root is making it's
> fits into a separate file? I realise that I can (possibly) write the
> parameters into two files but is there any way I can automatically write
> out what is being printed (if you see what I mean)
>
> Thanks
> Vic
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:18 MET