I'm currently writing code to pull the files with the same ending into one concatenated file. I'm noticing that when it gets to a duplicate file, the code breaks. Is there a way I could code this to accept the duplicate file as well? I know it may be as simple as renaming the file, but I wanted to reach out for answers first.
If(
N Items( lotFiles ) == 1,
CalibrationTable = lotFiles[1];
,
N Items( lotFiles ) > 1,
CalibrationTable = lotFiles[1] << concatenate( lotFiles1, create source column );
For( i = 1, i <= N Items( lotFiles ), i++,
Close( lotFiles[i], nosave )
);
,
N Items( lotFiles ) == 0,
Print( "no lot data, please try again" );
Return(0);
);