Add text to index file