I have files such:
buy.txt.xxx
buy.txt.yyy
buy.txt.zzz ...
Where xxx, yyy and zzz are unix timestamp
I want to allow user to search in limited date:
For example the user will enter these three variables(startDate,endDate,wordToSearch
):
Text Field1: 2017-05-01
Text Field2: 2017-05-05
Text Field3: wordToSearch
And the java app will convert startDate and endDate entered by user to Unix timestamp and loop through the files to get the lines contain the wordToSearch. How I can implemented such this in java