Hi all, I am sure that someone else has already asked something like that, but i am not sure how i should search for it. it seems too complicated for a serach string.
anyhow, here it is:
i want to open all files with a specific extension from the folder i am working on. for example i have 3 txt files, i want to open them one by one.
the problem is i dont know the names of the files, just the extensions, that they are ".txt". i found a method in the API called listFiles(Filter) but i didnt figure out how it works.
also, i want to open these within a loop, so a static way of entering the file name as a string will not be a good idea.
can anybody help?
thanks, Ilias
anyhow, here it is:
i want to open all files with a specific extension from the folder i am working on. for example i have 3 txt files, i want to open them one by one.
the problem is i dont know the names of the files, just the extensions, that they are ".txt". i found a method in the API called listFiles(Filter) but i didnt figure out how it works.
also, i want to open these within a loop, so a static way of entering the file name as a string will not be a good idea.
can anybody help?
thanks, Ilias