|
Read-File Write Display substring
Hi ,
I would appreciate if somebody could help me with this.
I have a txt file with more than 4000 lines. I need to find a substring of 35 zeros '00000000000000000000000000000000000' and they could be in more than one place. This program should actually read from file to find those substring . If it find 35 zeros i need 10 digits in front of it for example if there was 15151515150000000000000000000000000000000000 i need 1515151515.This program should write those ten digits in a separate file in new line.
example output
1515151515
1616161616
1717171717
I am new to java . just learning i would appreciate anykind of help i could get.
|