hexagon logo

Get the latest result values

Hi,
 
I am importing the results  using below PCL code and the file names remains same and value in the files are changed. But in the results case names are created as filename_1, filemane_2...Please suggest a method to get the latest case name to plot the results.
 
file_get_p3_home(HDIR)
 HDIR = HDIR//"\res_templates\p2nf_els.res_tmpl"
 resold_import_results( filename , "E", 1E-006, HDIR )​