Read in a file, write two kinds of histogram to a file.