add gendict to gen dictionary file from text file