My array contains Huge log file, with each array element holding each line of the log.
Eg Log File:
I am Fresher line 1
I am Fresher line 2
I am Fresher line 3
.
.
.
I am Fresher line 64
I am Fresher line 65
Yo… I am not a fresher, starting my assignments line 66
Start of the first assignment line 67
Start of the Second assignment line 68
.
.
.
Start of the last assignment ine25880
My array contains 25880 elements starting from 0 to 25879.
I want split my array on line (Element) “Yo… I am not a fresher, starting my assignments line 66
”
So
new first array will be (of 65 elements in this example)
I am Fresher line 1
I am Fresher line 2
I am Fresher line 3
.
.
.
I am Fresher line 65
And
new Second array will be (of 25815 elements in this example)
Yo… I am not a fresher, starting my assignments line 66
Start of the first assignment line 67
Start of the Second assignment line 68
.
.
.
Start of the last assignment ine25880
Eg Log File:
I am Fresher line 1
I am Fresher line 2
I am Fresher line 3
.
.
.
I am Fresher line 64
I am Fresher line 65
Yo… I am not a fresher, starting my assignments line 66
Start of the first assignment line 67
Start of the Second assignment line 68
.
.
.
Start of the last assignment ine25880
My array contains 25880 elements starting from 0 to 25879.
I want split my array on line (Element) “Yo… I am not a fresher, starting my assignments line 66
”
So
new first array will be (of 65 elements in this example)
I am Fresher line 1
I am Fresher line 2
I am Fresher line 3
.
.
.
I am Fresher line 65
And
new Second array will be (of 25815 elements in this example)
Yo… I am not a fresher, starting my assignments line 66
Start of the first assignment line 67
Start of the Second assignment line 68
.
.
.
Start of the last assignment ine25880