I have three folders, which holds all the news items (as .xml files). I want to read latest 10 files from the system. At present I am reading all the file names from 3 repositories along with created date and I am sorting all the filenames and displaying latest 10 file names. But the files are increasing day by day and it may cause performance problem to read all the files and sort.
Do we have any other alternative to get latest 10 file names from the folders? Please let me know.
Thanks in advance