prasath_2k
3 years agoOccasional Contributor
Fetching file
Hi experts,
I have to select a file from a folder to open it and do some operations on it.
I need to do two things;
1. I wanted to fetch always the "latest added file" from the folder.
2. I also wanted to fetch the "second latest added file" from the folder.
How do carry out these operations?
With reference to the above image; I wanted to fetch the "latest version of the installer" (ie V1.0.48 according to the given folder) and also the "one version lesser to latest"(ie V1.0.47 according to the given folder). I wanted to fetch the latest and next latest files always even if "N" number of files are added. So can anyone guide some foolproof way to achieve this?
Thanks a lot!!