5 should allow you to write to the file.

Also, don't get in a bad habit of not Dimming your code, you may want to go back at a later date and plug this into a larger script and you might run into issues with scope if other vars have same names.