> `System.Directory' on files w/o dot extension gives TRAP 1 around this line, > > IF (name[i0] = 0X) & (pat[j0] = 0X) THEN (*found*) Or perhaps your file names are simply so long (>32 chars), that an “array index out of bound" trap is generated for *this* reason.