read content from index file