home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16927 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!s1110238
  3. From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
  4. Subject: Re: Reading Filenames into an ARRAY
  5. Message-ID: <s1110238.722294041@giaeb>
  6. Keywords: in MOSDOS, Borland C 3.1
  7. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  8. Organization: Monash University, Melb., Australia.
  9. References: <1992Nov18.164544.13273@netcom.com>
  10. Date: Fri, 20 Nov 1992 21:14:01 GMT
  11. Lines: 19
  12.  
  13. bobb@netcom.com (Bob Beaulieu) writes:
  14.  
  15. >I want to be able to display a list of specific files in the current
  16. >directory from within my program. I want to be able to allow users to
  17. >select from a list of these file to be acted upon (printed,deleted,...).
  18.  
  19. >Is there an easy way to do this? It has to be DOS 2.0+ and not a
  20. >windows application.
  21.  
  22. Depends on the MS-DOS compiler you are using, MSC has functions such as
  23. _dos_findfirst(fname, attrib, fileinfo) and _dos_findnext(fileinfo) to find
  24. all matching files to the fname argument.  TC++ has similar functions as
  25. part of their DOS libraray.
  26.  
  27. You will probably get a better responce to this article if you post it
  28. in the comp.os.msdos.programmer newsgroup.
  29.  
  30. Lee Hollingworth
  31. s1110238@giaeb.cc.monash.edu.au
  32.