export the stats to the file