i want to grab and show multi-lined string from a file (has more than 20,000 lines of text in it) between two desired string(pattern) using java
ex: file.txt(has more than 20,000 lines of text) pattern1 string that i want to grab pattern2
i want to grab and show text in between these two patterns(pattern1 and pattern2) which is in this case "string /n that i /n want /n to grab" how can i do that i tried Bufferreader ,file ,string and few more things but nothing worked
sorry im a noob