Message-ID: <23725A8A3558D411A44B00D0B784811C022B2973@fsxtlf02.vance.af.mil> From: Burgess David A SrA 71 MSS/DPMD To: "'djgpp AT delorie DOT com'" Subject: RE: directory&files Date: Mon, 5 Mar 2001 21:50:12 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" Reply-To: djgpp AT delorie DOT com Depends on the file system....FAT/NTFS? -----Original Message----- From: Tom St Denis [mailto:tomstdenis AT yahoo DOT com] Sent: Monday, March 05, 2001 3:08 PM To: djgpp AT delorie DOT com Subject: Re: directory&files "Abacuc" wrote in message news:980qkc$lj0$1 AT pegasus DOT tiscalinet DOT it... > How can i distinguish a file or a directory? And how can I know the > extensions of the files (exe, com, jpg, etc.)? Well you can "fopen" a file not a directory... hmm... There is no ISO-C method for what you are asking. If you are making DJGPP specific requests research the "findfirst/findnext" functions. Tom