Write cfr output to a file