My task is I am having a inputFileLocation and list of some config files and need to check those files exists at that location.
- Example:
inputfileLocation = C:/input - list of config files:
sample_a.conf, refund_a.conf, sample_b.conf, refund_b.conf
Need to check whether the file exists and then return the list of sample.conf files and list of refund.conf files.
How to achieve this in java ?
Pretty simple: