Alternatively, and using an undocumented prefix, you could use
on me:*:join:#mytest: timer 1 2 msg # $read(greets.txt)
That also uses the correct format for the $read identifier. The format that you were using is only supported due to compatability reasons with older versions of mIRC.