dcsimg
Finding the location of a term in a file with its location.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vipin_sharma
Posted On:   Wednesday, September 21, 2005 06:55 AM

hi,

i want to find the location of a particular pattern from a text file, plzz help me to find i out....

Re: Finding the location of a term in a file with its location.

Posted By:   Shaun_Childers  
Posted On:   Wednesday, September 21, 2005 08:09 AM

Without writing the code for you, simply do the following:


1. Create a File reference to your file.

2. Read in a string at a time.

3. Check for String.indexOf() on each line.
About | Sitemap | Contact