Rework in text files