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