I'm attempting to get a file listing of the "\Temp" directory of only '.xml' files which works fine. However, I'd also like that listing to trim off the extensions. Instead of listing "filename.xml", I want it to just say "filename".
What should I add into my code to do this? My code is as follows:
DirectoryInfo xmlFileListing = new DirectoryInfo(@"\Temp");
fileListingBox.DataSource = xmlFileListing.GetFiles("*.xml");
In C#, How can I do this?
System.IO.Path.GetFileNameWithoutExtensi...
song downloads
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment