I have the same name csv files appened with Timestamp at server. I want to copy one file at a time, removing the timestamp to another location. For example the files are present as under at the server: MyFile_20140226.csv MyFile_20140227.csv MyFile_20140228.csv
I need to copy one file at a time removing the timestamp from the name of file as MyFile.csv to another location.
How should I get the filename sequentially removing the timestamp in java.