def gadgetMultipleFiles(rootName, fileIndex):
    """ Returns the name of gadget file 'fileIndex' when a snapshot is saved in multiple binary files.
    It takes 2 arguments: root name of the files and the file number whose name is requested (from 0 to GadgetHeader.num_files-1)."""
    return rootName + "%i" % fileIndex