1
Answer

Remove variable ends of a string.

Photo of Andre

Andre

17y
1.6k
1
Hi there,

I have for example a string like this:

/bedrijfsgroep/dienstencentrum/pd/catalogus/niveau0/niveau1/niveau2/test.doc

I want to remove for example till this so that I got this string:

/bedrijfsgroep/dienstencentrum/pd/catalogus/niveau0/

Sometimes it will be this:

/bedrijfsgroep/dienstencentrum/pd/catalogus/niveau0/niveau1/

And so on. How can I remove from the till for example niveau0?

Please can someone help me out with this one?

Answers (1)

0
Photo of Ramesh Palanivel
NA 9.5k 138.6k 8y
Hi Santosh,
 
Try this links, It may help you!..
 
https://www.codeproject.com/Tips/607801/SimpleplusChatplusprogramplusinplusC
 
http://www.c-sharpcorner.com/UploadFile/97ec13/how-to-make-a-chat-application-in-C-Sharp/