Add an .idx file to the writer.
the writer
the path of an .idx file.
0 or an error code
See Implementation
Add an .idx file to the writer.