Outputting index contents to a file

New text goes here