Hi Anurag, Will you please explain your question in more detail that from which place you want to retrieve file name ie from a directory where all files are stored and from any other place. If you want to retrieve it from directory then you can use combination of FileInfo and DirectoryInfo class to retrieve file name. Thanks.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Will you please explain your question in more detail that from which place you want to retrieve file name ie from a directory where all files are stored and from any other place.
If you want to retrieve it from directory then you can use combination of FileInfo and DirectoryInfo class to retrieve file name.
Thanks.