Hi,
How to read the file name alone from Input folder. I tried Path.GetFileName("Data\Input") , but showing blank output. Please help!
Hi,
How to read the file name alone from Input folder. I tried Path.GetFileName("Data\Input") , but showing blank output. Please help!
You need to mentioned the full path
Path.getfilename(“providefull path”)
Try this once
In the Folder Path remove the \ slash at end.
Give the path like below
“Data\Input”
Hope it helps!!
Hi,
You can use this.
System.IO.Path.GetFileName(yourFilePath)
Please try like this Directory.GetFiles(Path.Combine(Environment.CurrentDirectory,"Data","Input"))
This should solve your issue
Hope this helps
cheers