David wu wrote: > I can open ,read,write ,close a dos file ,but how > can i list all the files in a dir. > You need to use the 'opendir' and related calls. Some doco about this call can be found here: http://www.opengroup.org/onlinepubs/007904975/functions/opendir.html -- Chris Johns, cjohns at cybertec . com . au