Mail Archives: djgpp/1999/07/28/09:21:06.2
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 -