Edit text file