Export data from histogram to text file

A search for “Print histogram” revealed this here:

If you leave out the redirects .> file.txt, it will print to the console.