I finished the program, but still 2 things I don't understand.
First, he doesn't want to write something in file output2b, but he does print it on the screen if I ask so. So the path works, but he just doesn't write to the file. But the other file where he found a hit (output1b) there he does write it in the file. But there he stops when he is almost finished. And I don't know why? But at the same time he does print everything on the screen if asked. So he did look at the whole file, but he just doesn't print everything.
Code:
xD

