P
Prabh
Hi,
I'm traversing through an ASCII-text file line-by-line through
FileReader and LineNumberReader.
Each of the lines are processed for any match with a regular expression.
If match found, I need to print the "currentline + 1" line.
I'm using the while construct to loop through the file.
( str, lineReader, matcher match previously defined.)
while ((str = lineReader.readLine()) != null ) {
----
Regex processing
---
while ( match.find() ) {
Print the currentline + 1 here.
}
Could anyone give me some pointers, please.
Thanks,
Prabh
I'm traversing through an ASCII-text file line-by-line through
FileReader and LineNumberReader.
Each of the lines are processed for any match with a regular expression.
If match found, I need to print the "currentline + 1" line.
I'm using the while construct to loop through the file.
( str, lineReader, matcher match previously defined.)
while ((str = lineReader.readLine()) != null ) {
----
Regex processing
---
while ( match.find() ) {
Print the currentline + 1 here.
}
Could anyone give me some pointers, please.
Thanks,
Prabh