Clust file whit while loop