You have written the variable myTextfile
in two different casing: myTextFile
and myTextfile
are not identical variables.
Please correct the casing and think about using an IDE that can point out such errors, it will make your life a lot easier!