Update main text file