Also, if you know in advance your file names, why not begin your process
with something like the following:

   fls=. 'BaseTCs.xml';'PhonyBaloney';'erf.2.xml';'NonExist.ant'
   fexist&> fls
1 0 1 0

checkFls=: 3 : 0
   if. 0~:missingfls=. (]#~[:-.fexist&>) y do.
       ('Missing: ','.',~}:;(<', '),~&.>missingfls) 13!:8]99 NB. Signal
error.
   else. 1 end.
)

   foo=: 3 : 'checkFls y'

   foo fls
|Missing: PhonyBaloney, NonExist.ant,.: checkFls
|   ('Missing: ','.',~}:;(<', '),~&.>missingfls)    13!:8]99
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to