Ooops, my last patches were wrong, setpwent and endpwent should both set the position to start of file (i = 0). I mistakenly had changed endpwent to move the position to EOF. Tim N. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".