Thanks to Erik and Gerrit for the answers. Can somebody can give my a list of the routines/functions that must be called to write an index file. I know that is trivial to do the printing but I try to use as much as possible routines which are already there in gromacs. Thanks. Valentin