Revert "NewTextFile"

This reverts commit b427808223eaeeb8797ecec02edcf81af73fdbe0.