Need to trim a string till end after a particular combination of characters
- by bits
Hi all,
I need help in trimming everything in my string till end after it encounters the first "\0"
So:
"test\1\2\3\0\0\0\0\0\0\0\0\0_asdfgh_qwerty_blah_blah_blah"
becomes
"test\1\2\3"
I am using c#. Help would be greatly appreciated.
Thanks.