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\subf older\maybeanot her\__TFMF_lrni ez55ufziugv2nnz nzeyt_b9c9c1d5-230a-43e1-b38a-7a44_0___Select ed.eps"
I need to return just the directory name "c:\thedir\subf older\maybeanot her\"
which may be different, and the file name minus the extension and the
"___Selecte d" portion, so return
"__TFMF_lrniez5 5ufziugv2nnznze yt_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\subf older\maybeanot her\__TFMF_lrni ez55ufziugv2nnz nzeyt_b9c9c1d5-230a-43e1-b38a-7a44_0___Select ed.eps"
I need to return just the directory name "c:\thedir\subf older\maybeanot her\"
which may be different, and the file name minus the extension and the
"___Selecte d" portion, so return
"__TFMF_lrniez5 5ufziugv2nnznze yt_b9c9c1d5-230a-43e1-b38a-7a44_0". I could
do this in VB.NET as well as TSQL but how in C#? Thank you.
Comment