Im trying to grab a number from a filename and insert it into a txt.
Have no idea if this can be done.
Im explaining it better.
- I have 2 folders. Accounts and byNumber
- I have to check if there is any file with similar name in the 2 folders. By similar I mean Account->john_denver.txt and byNumber-> john_denver.txt
- if there is such a file I have to write inside john_denver.txt the number that is in the brackets: 5534.
- I have to write this number in a specific point like “account_number: 5534”.
Numbers can vary in length.