delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/28/09:21:06.2

Message-Id: <199907281320.JAA24766@delorie.com>
From: "Dan Gold" <TedMat AT CoastNet DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: getting all filename in sub-directory
Date: Tue, 26 Jan 1999 21:41:45 -0800
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Is "rt" read text? should "r" do the same thing? and also is that > thingy
reading the directory to a file? and can you normally open a directory as a
file? am I way off???

from Dan Gold

            -=-=[CATACOMB ABYSS]=-=-
http://www.geocities.com/SiliconValley/Port/1547/

----------
> From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
> To: Clemens Valens <c DOT valens AT mindless DOT com>
> Cc: djgpp AT delorie DOT com
> Subject: Re: getting all filename in sub-directory
> Date: Wednesday, July 28, 1999 2:31 AM
> 
> 
> On Tue, 27 Jul 1999, Clemens Valens wrote:
> 
> > About your system() command, you could do it as
> > 
> > char show_files[] = "dir *.exe /s > exe_files.txt";
> > system(show_files);
> 
> Or, even better:
> 
> 	FILE *fp = popen ("dir *.exe /s", "rt");
> 	fread (fp, ...);

- Raw text -


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