. . . and I shall delete your unintentional duplicate posting.
As i per my knowledge this is not DUPLICATE posting.
I know that the string that i am using it not valid one . But,the problem is when your are browsing some file in Windows OS , you will get that INVALID
java string. Before processing i have to convert it as "C:\\Documents and Settings\\prabhat_kumar04\\Desktop\\Prabhat\\System.txt" or
"C:/Documents and Settings/prabhat_kumar04/Desktop/Prabhat/System.txt"
But the problem remains same that you are getting the inavlid String as input. So, what should i do now??