Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!csource!david From: david@csource.oz.au (david nugent) Newsgroups: comp.lang.c Subject: Reading MS-DOS directory in C, how to Message-ID: <48.25DAD22A@csource.oz.au> Date: 16 Feb 90 04:37:54 GMT Organization: Unique Computing Pty Limited (Vic) Lines: 22 > j = findfirst ("*.*", &ff, FA_RDONLY|FA_HIDDEN|FA_SYSTEM|FA_DIREC); > while (j) > { > /* store information or do whatever */ > j = findfirst (&ff); > } A correction: The while statement above should read: while (j == 0) etc. Sorry if it caused you any problems. david -- uucp: ...!munnari!csource!david internet: david@csource.oz.au Via FidoNet 3:632/348, Melbourne, Australia.