my advice, dont beat your head in trying to reinvent the wheel... :P several UDF's out there to do the heavy lifting for you.

Code:

for each $file in dirplus('X:\Office\Type','/s1 /a-d /m logfile.txt')
? $file.path + $file.name

$filedata = loadfile($file.path+$file.name)

/* at this point, i dont knwo wht your data looks like,
but the variable $filedata should be the entire contents of logfile.txt
that was found in one of the users folders.

This code uses 2 UDF's Dirplus() and Loadfile() */


next