home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!wupost!usc!srhqla!quest!kdq
- From: kdq@quest.UUCP (Kevin D. Quitt)
- Newsgroups: comp.lang.c
- Subject: Re: Find files of a directory in UNIX
- Message-ID: <s7iBwB6w165w@quest.UUCP>
- Date: Thu, 24 Dec 92 19:21:39 PST
- References: <1992Dec23.073911.915@dec8.ncku.edu.tw>
- Reply-To: srhqla!quest!kdq
- Organization: Job quest (805) 251-8210, So Cal: (800) 400-8210
- Lines: 27
-
- wangbs @casd1.iie.ncku writes:
-
- >
- > Hi, all :
- > In UNIX, how can I program to find all files in a directory ? Since
- > I am not familar in C, It is better having example...
-
- try ls
-
-
- > Thanks for any response & happy new year !!!!
-
- you're welcome.
-
-
- (P.S., from the FAQ:)
-
- 12.15: How can I read a directory in a C program?
-
- A: See if you can use the opendir() and readdir() routines, which
- are available on most Unix systems. Implementations also exist
- for MS-DOS, VMS, and other systems. (MS-DOS also has FINDFIRST
- and FINDNEXT routines which do essentially the same thing.)
-
-
- _
- Kevin D. Quitt 96.37% of all statistics are made up. srhqla!quest!kdq
-