Persistence of the index to a text file