i am trying to print the Filename from last index of '//' till the file length.
file length is coming as 83 last index is coming as 47 then what wrong i am doing here
int idx = file.LastIndexOf('\');
int fl= file.Length;
string filename = file.Substring(idx, fl);
See Question&Answers more detail:os