Edward, John:
Actually, ADIR() will return the count:
a=ADIR(x, "*.txt")
>>What is the best way to loop through a directory(I want to get a count of how many text files are contained in a directory)
>>Thanks in advance for any help offered,
>>John Symons
>
>Use ADIR() to get array of file names, then loop through this array, or use ALEN() to get total number.