Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!sgi!parcvax!leisner From: leisner@parcvax.Xerox.COM (Martin Leisner) Newsgroups: comp.sys.ibm.pc Subject: Re: How do I open() DOS directories? Message-ID: <907@parcvax.Xerox.COM> Date: 23 May 88 16:42:29 GMT References: <221@h-three.UUCP> <5631@cup.portal.com> Reply-To: leisner@parcvax.xerox.com.UUCP (Martin Leisner) Organization: Xerox PARC Lines: 18 In article <5631@cup.portal.com> Robert_C_Tellefson@cup.portal.com writes: >In order to treat directories as files, you need to open them using the >old FCB (File Control Block) functions. Inconsistent and more >complicated - but it does work. I've tried this and I couldn't get it to work on Dos 3.2. Can someone please post or send me some code which works if this is possible? My understanding is since directories have length = 0, reading it just returns end of file. Being able to read raw physical directories would be most useful to speeding up directory searching software. I've thought of writing software to work through fat tables to provide a raw directory searching interface, but never got around to it. leisner.henr@xerox.com leisner@parcvax.uucp