If I have a string saying \"abc.txt\", is there a quick way to get a substring that is just \"abc\"?
\"abc.txt\"
\"abc\"
I can\'t do an fileName.IndexOf(
fileName.IndexOf(
This implementation should work.
string file = "abc.txt"; string fileNoExtension = file.Replace(".txt", "");