split each topic of document to single file