Greetings.
Umm, assuming that the lines in your file always have ().
And, you would like to get the content in the bracket then you could do this:-
[1] Get the content of line 10, store them as an array of characters.
[2] Make a for-loop, compare each character in the line ->
// Pseudocode-like only
int indexOfOpening = 0;
for (i=0; i<lengthOfLine; i++)
{
if(ch[i]=='(')
{
indexOfOpening = i;
i = lengthOfLine;
}
}
[3] Now, you have the index of the opening bracket.
[4] Get the index of the starting element inside the bracket which is simple what you
got in [3] plus 1.
[5] Make another for-loop to gather every other character until you see a ')'.
[6] After this, you would consider converting the elements you've collected into an
integer, or anything relevant.
Hope this would help.