# Write scan ouput in a txt file

Hello,
could you tell me how to write in a txt file the output of TTree scan function? Thanks.

I find the solution [url=https://root-forum.cern.ch/t/dumping-ttree-variables-to-a-file/7517/1 Sorry for the inconvenience.

In fact, I have another question concerning this “issue”.