Hi, I’ve a text file that has data with some numbers in between. I’m splitting the data based on newline and now I need to search a number which I would have in a data item and get the index of that row in the array.
For instance I’m searching for “124578” it might have something like 0000124578 some random text Input.txt (2.2 KB)
Note: We might have any random text in the line before and after the number
I don’t want the index of the number in the complete string. I need to split the text, after splitting the text I want to get the row index in which row the values exists.
From this array I need the index of the line which contains the search value. For example if I search for 879512 I need to get my output as 2 since index starts from 0 and the value879512 is on 3rd Index off array.