Add topics to file