to expand @Jed_Campbell example a bit,
for each ({filename}, lstFiles,
//your script for each file
dt = filename; // it isn't really a name, it is a data table handle
... do something with this open data table that dt points to
close( dt, "nosave" ); // if you are done with it
);
Copying filename to dt is just to make it clear what the list element is. You might dt<<graphbuilder(...), etc.
Craige