I'm calling a list of strings from a server.
At the moment I'm getting the full name and file extension like:
Image1.jpg
image2.png
test_folder.folder
I have some code that relies on the knowing what the extension is, however I also need to access the name of the item I've selected with out the extension.
So far my two attempts have been the following:
_clickedFolder = listBox1.SelectedItem.ToString() - "folder";
_clickedFolder.Trim(new Char[] { '.folder' });
but neither of these work.
What is the correct way to take the file extension away and just have the file name display?