First off, don't wrap your macros in quotes.
Second, you need to open for WRITE, not READ.
3.60 is old but AFAIK the default for open if mode is unspecified is READ.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.