Article View: comp.lang.basic.misc
Article #32Re: Help finding contents of current directory.
From: Carl Verner Skou
Date: Sat, 16 Mar 1996 19:00
Date: Sat, 16 Mar 1996 19:00
16 lines
1302 bytes
1302 bytes
In article <3149D3CC.7D67@gate.net>, hollon@gate.net says... > >I am trying to get a listing of the files in the current directory. I realize >I will have to use stat to determin wether it is a file or a directory. But >how do I find out what's in the directory in the first place. In Windows 3.1 use: _dos_findfirst( "*.*", _A_NORMAL | _A_SUBDIR, &c_file ); and _dos_findnext();, examine the attribute c_file.attrib to find out if it is a file or directory. -- yours Carl Verner Skou *********************************************************** What's mind? Doesn't matter. What's matter? Don't mind.
Technical Details
Message-ID:
<4if33p$7kt@gjallar.daimi.aau.dk>Path:
arc1-ca.pugleaf.net!news.daimi.aau.dk!gladReferences:
<4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com> <3149D3CC.7D67@gate.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.daimi.aau.dk!glad From: carlvern@psy.aau.dk (Carl Verner Skou) Newsgroups: comp.lang.basic.misc,comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.apps.comm,comp.os.ms-windows.apps.word-proc,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.mfc,comp.windows.misc Subject: Re: Help finding contents of current directory. Date: 16 Mar 1996 19:00:09 GMT Organization: Institute of Psychology, AAU DK Message-ID: <4if33p$7kt@gjallar.daimi.aau.dk> References: <4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com> <3149D3CC.7D67@gate.net> NNTP-Posting-Host: carlvern.psy.aau.dk X-Newsreader: WinVN 0.99.7