Message-Id: <199907281320.JAA24766@delorie.com> From: "Dan Gold" To: 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 > To: Clemens Valens > 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, ...);