KiDS selection, output to file