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(
If you want to create full path without extension you can do something like this:
Path.Combine( Path.GetDirectoryName(fullPath), Path.GetFileNameWithoutExtension(fullPath))
but I'm looking for simpler way to do that. Does anyone have any idea?