In article <1724 at unccvax.UUCP> cs00wsc at 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 <dirent.h> interface to read directories.