posted 18 years ago
Hello all,
I have a problem in FTP ing a file.The scenario is as follows:
I have a folder "temp" which holds n number of files and every file has a name in the form "TEST.20050720T1620511325.XML.pgp" The numbers in between signifies the date of the present day followed by T which signifies time , followed by the time when the file was sent by X party to the temp folder.
My FTP program needs to read the latest file for the day.It means out of 10 files i need to pick the latest file and that needs to be FTPed.
So can anyone help me with some sample code which allows me to pick the latest file.
Actually temp folder daily gets one file from X party, so it will hold collection of such files.
Thanks in advance,
Saurabh
Success is not doing extraordinary things but doing ordinary things extraordinarily well.