write out rating of level to file