From: "Abacuc" Newsgroups: comp.os.msdos.djgpp Subject: Re: directory&files Date: Tue, 6 Mar 2001 13:07:08 +0100 Organization: Tiscali Spa Lines: 29 Message-ID: <982js0$2u6$1@lacerta.tiscalinet.it> References: <23725A8A3558D411A44B00D0B784811C022B2973 AT fsxtlf02 DOT vance DOT af DOT mil> NNTP-Posting-Host: rm1-982.dialup.tiscalinet.it X-Trace: lacerta.tiscalinet.it 983880384 3014 62.11.122.214 (6 Mar 2001 12:06:24 GMT) X-Complaints-To: newsadmin AT tiscali DOT it NNTP-Posting-Date: 6 Mar 2001 12:06:24 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I use DJGPP on a win98 system... "Burgess David A SrA 71 MSS/DPMD" ha scritto nel messaggio news:23725A8A3558D411A44B00D0B784811C022B2973 AT fsxtlf02 DOT vance DOT af DOT mil... > 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 >