Hi, i want to ask. is it possible to read an csv file with dynamic names ?
in my case, i need convert the csv into excel, but the file names is different each day.
ex :
filename_object_yy-mm-dd.csv
animal_cat_22-04-12.csv
the filename_object is same, but the yy-mm-dd is different eachday
because i download the files eachday in morning.
i hope you guys understand ( sry for bad english )
thanks
If you are downloading and using it then you can get the latest downloaded file from the download folder. Please see the below expression. (Expression will return you the file path.)
Directory.GetFiles(yourfolder_path,"*.txt").OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)
You are using it to extract the data then you don’t need to pass the dynamic name you can simply do it in above way.
If you want the file name for other purpose then do it as suggested by @Nithinkrishna