Modify text files