How to read files which start with specific word and with specific extension
Solution:
- Suppose your filename starts with the word “Sample” and the extension of the file is “.txt”
- To read all the files which match the above configuration, you have to use Wildcard
- You can use the below wildcard to achieve the above scenario.
Sample.+\.txt
- In the same way, you can change the wildcard value as per your requirement.