added directry for writing text files