in reply to problem opening and reading from a file

probably have my head up my ..... but I just cant figure it out.

It would help if you could copy/paste the exact snippet that's giving you the error. Don't just retype it, because that risks introduced typos, as in your first snippet (which misses a trailing quote).