Below code in asp.net get the filename without extention.
DirectoryInfo directoryInfo = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.SendTo)); directoryInfo.GetFiles().Select(file => Path.GetFileNameWithoutExtension(file.Name)).ToArray();
Posted By : Dipen Shah DirectoryInfo directoryInfo = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.SendTo)); directoryInfo.GetFiles().Select(file => Path.GetFileNameWithoutExtension(file.Name)).ToArray();
Stay Tuned...
No comments:
Post a Comment