G
Guest
What are the equivalant to left, right, etc. in C#. How can I extract
strings from a string without them? For instance, I have a string like so:
"c:\thedir\subfolder\maybeanother\__TFMF_lrniez55ufziugv2nnznzeyt_b9c9c1d5-230a-43e1-b38a-7a44_0___Selected.eps"
I need to return just the directory name "c:\thedir\subfolder\maybeanother\"
which may be different, and the file name minus the extension and the
"___Selected" portion, so return
"__TFMF_lrniez55ufziugv2nnznzeyt_b9c9c1d5-230a-43e1-b38a-7a44_0". I could
do this in VB.NET as well as TSQL but how in C#? Thank you.
strings from a string without them? For instance, I have a string like so:
"c:\thedir\subfolder\maybeanother\__TFMF_lrniez55ufziugv2nnznzeyt_b9c9c1d5-230a-43e1-b38a-7a44_0___Selected.eps"
I need to return just the directory name "c:\thedir\subfolder\maybeanother\"
which may be different, and the file name minus the extension and the
"___Selected" portion, so return
"__TFMF_lrniez55ufziugv2nnznzeyt_b9c9c1d5-230a-43e1-b38a-7a44_0". I could
do this in VB.NET as well as TSQL but how in C#? Thank you.