i've got a little question..
i have a simple txt file with some lines in it, but i struggle with something : the text file is linked to 3 methods by example :
method 1 calls : "callMath", 2: "callFrench" and 3: "callDutch".
the text file looks like this by example:
math_tafels_question1
dutch_dt_question1
french_vocab_question1
math_tafels_question2
dutch_dt_question2
french_vocab_question2
etc etc..
my question is is there something like a substring command or something that if i call the method "callMath" that it only reads the lines that start with "math?" and if i call the method "callFrench" it only reads the lines that start with "french"?
you may say sort them and read them per 10 or something, but the thing is some questions will be deleted, and there will be some questions added, so i never know the exact line number of the questions..
hope anyone can help me out?;)