using System;
public class Extracting_Portion_Substring
{
public static void Main()
{
string path="C:\\Pics\\burcin.jpg";
int index=path.LastIndexOf("b");
string fullname=path.Substring(index);
Console.WriteLine("index of b="+index);
Console.WriteLine(fullname);
}
}
NOTE: "//" count one...
OUTPUT: index of b=8 burcin.jpg