Hi friends,
i need some urgent help from u.
i would like to divide a string using a "\"(pathseparat or) as delimeter with Split method.
String str="c:\documen ts\csr\text.txt
i need the last word text.txt.
String str1 =str.split('\')[];
i used like this ,but i am not getting the output,please help me.i tried it in google and in some other forums, but i didnt get.
and another one, is there any way to get last word directly without looping the array?
please as early as possible
Thanks in advance
i need some urgent help from u.
i would like to divide a string using a "\"(pathseparat or) as delimeter with Split method.
String str="c:\documen ts\csr\text.txt
i need the last word text.txt.
String str1 =str.split('\')[];
i used like this ,but i am not getting the output,please help me.i tried it in google and in some other forums, but i didnt get.
and another one, is there any way to get last word directly without looping the array?
please as early as possible
Thanks in advance
Comment