basically, putting between “.>” the commands you want to run. But this saves in the txt file more than just the cout output, so if you only want to save the “couts”, it’s better to export the output directly from your within code, using ofstream for instance, instead of cout.
What I want is that what I have to write in the macro than doing it from outside.
And another thing is that I want to save the entry in a .txt file so that I can use it later for some other purposes(say drawing TGraph).