my problem is that i’m reading a directory then i filter the files by name, but also in this directory there are other files with different names, what i am trying to do is enter this file with different name and read line number 6, and if this line matches with the name of the other files that have same name, save this files into and array to process them later.
Thanks in advance.
Try this:
Note: totally untested and written without IDE, but maybe it’s helpful anyway.