It is the same as tracking score to a certain extent.
Consider that each question in your text file do have an index.
Have an array of 2 columns (X = question (index); Y 0 = Number of displays of the question; Y 1 = Number of correct answers) in your program.
You pick the question randomly, yet you know that question X was asked. So you add 1 display to this question in the array.
Depending on the result, you add one correct answer to X question (second column, Y 1).
Save and load the array to and from local storage, this way you'll be able to do the tracking you are looking for.
Obviously you can then get your statistics out knowing the number of times the question was displayed, the number of times it has been answered correctly and deducing the number of times it was answered wrong.
Save this array to local storage and have it loaded