USER command questions (Fairlight)

Kenneth Brody kenbrody at spamcop.net
Fri Sep 11 13:49:46 PDT 2009


Tyler wrote:
> On Fri, Sep 11, 2009 at 11:24 AM, John Esak <john at valar.com> wrote:
> 
>>  If you're going to use opehdir() as you say with SYSTEM, then do yourself
>> ahother favor and get rid of the NeXTDIR.. Why "execute" that command for
>> every file in the folder, when all you have to do is increment a counter and
>> it automaticlly points to the next file.  I'm missing your logic here.  Or,
>> maybe I didn't explain the @dirlist arrays wlell nough.
> 
> Ah, perhaps I misunderstand how NEXTDIR works?  My impression was that
> NEXTDIR read from @dirlist.  Does it do a separate OS call each time?

OPENDIR() builds a list.  Originally, the only way to access this list was 
with NEXTDIR() to sequentially read the list.  Later, the @DIRLIST_*[] 
arrays were added to give you direct access to the list.

[...]

-- 
Kenneth Brody


More information about the Filepro-list mailing list