开发者

Can firefox add-on create files

I'm working on a firefox plugin. Part of what I want it to do is when a button is clicked, it write some outp开发者_开发百科ut to a file. The file may not exist, it which case it needs to be created. If the file exists, it needs to be appended to. Is this possible with firefox add-ons?


Of course. See:

https://developer.mozilla.org/en/Code_snippets/File_I%2F%2FO

And:

https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIFile#create%28%29

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜