read in each user record (first,last,id) lookup id in a list of id's to determine output file print user record to correct output file end read loop