We have a lot of string variables in an asp.net c# application with values like "document.doc"' "powernt,ppt", school.xls"', "theme.pdf" and son on. How can we separate in code behind in 2 new strings each variable and that 2 new variables must be: First new string is the name before the "." and the second string the extension or the name after the "."
For example using one example I wrote:
main string : "document.doc" and this we want to store in 2 new variables like this:
first new variable value "document"
second new variable "doc"
In short is like separate the name and extension in 2 new variables.
What command or script can be used to do that in codebehind?