Update text file index