Write structure index files