From: Rajeswar reddy Gaulla Date: 2008-08-19T02:23:07+09:00 Subject: Need ruby code to get a latest file from a Directory Hi All, I am having log files with time stamp in a log directory, how to open a latest log file and read it?. Eg: directory name log/ files log/log20080812152634Lbuild.34.xml log/log20080812122634Lbuild.34.xml log/log20080812102634Lbuild.34.xml log/log20080811142634Lbuild.34.xml log/log20080811122634Lbuild.34.xml If anybody know the solution, please let me know. With Regards GRR -- Posted via http://www.ruby-forum.com/.