Date: Thu, 29 Jul 1999 11:05:43 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Dan Gold cc: djgpp AT delorie DOT com Subject: Re: getting all filename in sub-directory In-Reply-To: <199907281320.JAA24766@delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 26 Jan 1999, Dan Gold wrote: > Is "rt" read text? Yes. > should "r" do the same thing? The default for `popen' is binary, not text. So it's not the same. > and also is that > thingy reading the directory to a file? This is called redirection. > and can you normally open a directory as a file? Use the library function `opendir' to ``open'' a directory. You cannot open a directory as a file on DOS/Windows (but you can on some versions of Unix).