I have to perform a task and I’ll do my best to detail it.
I have 5 folders, for example:
- Folder A
- Folder B
- Folder C
- Folder D
- Folder E
In each of these folders is a file. Basically, I need to compare each file against one another (I’ll be calculating a value based upon data within these files.) This needs to be done for every combination (A to B, A to C, A to D, A to E, B to C, B to D, B to E, C to D, C to E, D to E)
Not really sure where to begin with this. Any help is greatly appreciated!
Not sure what your returning value is, but here’s an example of traversing the five folders and appending values to a single string as the final value.
You can build your own logic upon this.