Hello and thanks for replying, Epic.
I copied and pasted your code to test it and nothing happened.

If I add the "w" switch, though, to your 4th line
var %num $readn | var %str $+(*,$read(%file,-nw,%num),*)
it then works, but it's back to doing the same thing: responding to all of the below texts (even without the question mark)
What is the capital of Germany?
is the capital of Germany?
the capital of Germany?
capital of Germany?
of Germany?
Germany?
I want it to trigger ONLY on the first line from the QA.txt, which is What is the capital of Germany?