The reason it didn't work, is because $read without n flag evaluates it's read-in contents.
If you do $read(cookie.txt,n) it would work, but since there's no reason at all to put those } in the first place, what DaveC gave you, is what you are looking for.
Greets