Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 output 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?

like image 424
sameold Avatar asked Dec 31 '25 00:12

sameold


1 Answers

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

like image 158
Jared Farrish Avatar answered Jan 06 '26 12:01

Jared Farrish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!