Find a character and return last 2 characters in a string
I have a string which will have a comma in it. I want to say, if MyString has a comma in it then return the last two characters of the string otherwise return the first two characters. How do I do that?
My string is being read from a text file like this