delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/26/04:19:52

Date: Fri, 26 May 2000 10:19:28 +0200 (MET DST)
From: pad2369 <pad2369 AT iperbole DOT bologna DOT it>
Message-Id: <200005260819.KAA17308@maggiore.iperbole.bologna.it>
To: djgpp AT delorie DOT com, netrunnr9326 AT my-deja DOT com
References: <8gkp5t$ar7$1 AT nnrp1 DOT deja DOT com>
In-Reply-To: <8gkp5t$ar7$1@nnrp1.deja.com>
MIME-Version: 1.0
User-Agent: IMP/PHP3 Imap webMail Program 2.0.11
Sender: pad2369 AT iperbole DOT bologna DOT it
Subject: Re: File manipulation?
Reply-To: djgpp AT delorie DOT com

netrunnr9326 AT my-deja DOT com:
> I've been learning C++ in my spare time for a while 
> now, and I finally
> came up with a small program that would be useful 
> (albeit only to a few
> people)! I think it's all within my abilities except 
> I need some way to
> retrieve the names of files in directories, and get 
> the size & date,
> etc, of specific ones. I still can't do Windows apps, 
> so any solutions
> would have to be for DOS for me to utilize. Any help 
> in advance would
> be appreciated!

You can have a look at functions opendir() readdir()
and closedir(), which are Posix-compliant.

Otherwise you can use findfirst() and findnext(),
which are non-standard but quite common in 
other DOS compilers.

ciao
  Giacomo
-----------------------------------------------------
Giacomo Degli Esposti - pad2369 AT iperbole DOT bologna DOT it

- Raw text -


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