Hi,
My problem is that when using the file iterator to append the file name onto my rows, the iterator won't actually stop when there is no more information in one file, and instead move onto the next file and continue to append the first filename onto this second file, which is a process that repeats for the next 20+ files and is obviously wrong. I've followed this guide to help me do this but no matter what I do I can't get the iterator to stop when there is no more information left in the first file.
Hopefully I've explained it well enough in the first section, but just in case, here's an example that is similar to the problem that I'm facing:
There are two files. The first file has 20 rows of information in it and the second file has 30 rows. Instead of only having 20 rows of information with the first filename appended to it, I have 50 rows with the first filename appended on, followed by another 50 rows with the second filename appended onto it. How can I get it so that I only have 50 rows in total, with 20 rows for the first filename and 30 for the second?
Thanks!