I checked the file and noticed it was encoded with UTF-8-BOM when i changed it utf-8 it worked. Looks like it was the byte order mark causing the issue
also there is a mistake in your code on the last rget statement
change
to
also there is a mistake in your code on the last rget statement
change
to