Within my app, I am receiving a string containing a folder path.
Within that path, there will be a number from 1 to 6 . I have been determining the number's position by splitting the string on the "\" character - so far, it has always been in the 3rd element (though I can adjust my logic if that changes at some point).
My dilema is, I need to convert that number to a letter (1=H, 2=I, etc...6=M).
So I'd like to know what options I have to approach this.
My app needs to run a shelled process that needs the local volume, which is indicated by the numeric value in the string.
Looking for suggestions - thanks!