i need to take out 4 only from string
is it possible?
Image(4).jpg
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenzeyePosted Nov 19, 2015, 6:35 AM
Rajeesh MenothPosted Nov 19, 2015, 6:32 AM
SL GPosted Nov 19, 2015, 6:26 AM
Imtiyaz AnsariPosted Nov 19, 2015, 6:03 AM
Banketeshvar NarayanPosted Nov 18, 2015, 12:43 PM
String str = "Image(4).jpg";
int index = str.IndexOf('4');
char result = str.ToCharArray()[index];
Console.WriteLine(result);
Praveen DhatrikaPosted Nov 18, 2015, 10:53 AM