Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: get the file directory Keywords: directory Message-ID: <11602@smoke.BRL.MIL> Date: 15 Nov 89 18:46:53 GMT References: <1724@unccvax.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <1724@unccvax.UUCP> cs00wsc@unccvax.UUCP (Shiang Chin) writes: >... I don't know what's wrong on my code. The main thing wrong is that you're attempting to read a directory as though it were an ordinary data file. These days, that's a poor assumption, and you should always use the portable interface to read directories.