Okay I am stumped...

 Code:
If Open(1,"SomeFile",5) = 0
  WriteLine(1,"A bunch of stuff")
EndIf


All I get are -4, File not open for writing

Yes it pseudo code, yes the permissions are correct (User running the script has full control on the folder containing the file)

What am I missing?
_________________________
Today is the tomorrow you worried about yesterday.