Most likely, it's because of a name clash between your program name text
and the Text
file type. Try renaming your program to something else.
Also, in your body you increment numStr before checking if it is even - you probably want the check before the inc
.