PDA

View Full Version : searching a string.


rajesh
05-18-2004, 03:47 PM
hello every one,

I am new user to this group and also for java.

I have a problem.

I have a text file, i am reading that file.
Problem is, i want a particular string in the entire text file and return that string and print in on the console.
Can anyone help me how to do the above one,provide me a solution.

Thanking in advance.

Jason
05-19-2004, 08:58 PM
you could read the file into a string and then use the 'contains' function to find that perticular string in the string...


Jason