open file using ‘special protocol’

Hello,

I want the plugin to open a file during the running of the addon so it can read/write information from/to it.

I keep getting the Error – ‘Permission Denied’.

This is the code:

Code:
ACCOUNT_FILE_PATH = "special://xbmc//addons//plugin.video.movieTalk//account.txt"

account_file = open(ACCOUNT_FILE_PATH, "w")

Is it something with my syntax?