delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/27/02:16:34

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reading the directory
Date: Tue, 27 Jan 1998 02:10:34 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 20
Message-ID: <34CD886A.2BBB@cs.com>
References: <01bd2924$c3718480$4d3e64c2 AT default>
NNTP-Posting-Host: ppp205.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

laine wrote:
> 
> I'd like to know how I can read a directory
> from my program.

besides opendir()/readdir()/closedir():

- findfirst()/findnext()
- _file_tree_walk()
- searchpath()

All of these and more can be found in "info libc func file".

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "If 'everybody knows' such-and-such, |
|       aka Fighteer I       | then it ain't so, by at least ten    |
|   mailto:fighteer AT cs DOT com   | thousand to one."                    |
| http://www.cs.com/fighteer |                 - Lazarus Long       |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019