Create the index file.