🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.misc
Article #37

Re: Help finding contents of current directory.

#37
From: Ian Musgrave
Date: Tue, 19 Mar 1996 07:13
21 lines
1571 bytes
G'Day All
Dale Hollon <hollon@gate.net> writes:
>From: Dale Hollon <hollon@gate.net>
>Subject: Help finding contents of current directory.
>Date: Fri, 15 Mar 1996 15:32:12 -0500

>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.

See my posting "Re:Req:How to get the current drive and directory" for a 
method of finding subdirectories and files in a given directory (as well as 
the current path).

Cheers! Ian

---------------------------------------------
Ian Musgrave Ph.D Ian.Musgrave@med.monash.edu.au 
Prince Henry's Institue of Medical Research
PO Box 5152, Clayton 3168, Australia.
Phone +61 3 550 4286 FAX +61 3 550 6125
Technical Details
Message-ID: <Ian.Musgrave.350.314E5E82@med.monash.edu.au>
Path: arc1-ca.pugleaf.net!calcium.med.monash.edu.au!Ian.Musgrave
References: <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!calcium.med.monash.edu.au!Ian.Musgrave
From: Ian.Musgrave@med.monash.edu.au (Ian Musgrave)
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: Tue, 19 Mar 1996 07:13:06 GMT
Organization: PHIMR at Monash Medical Center
Message-ID: <Ian.Musgrave.350.314E5E82@med.monash.edu.au>
References: <4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com> <3149D3CC.7D67@gate.net>
NNTP-Posting-Host: calcium.med.monash.edu.au
X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]