Create a index file