canmove, Confirmed users
737
edits
| Line 233: | Line 233: | ||
'''How can I read from/write to a file? ''' | '''How can I read from/write to a file? ''' | ||
You can use the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/api-utils/docs/file.html <code>file</code>] module. However, if you just need some persistent storage and don't need the data to be available outside your add-on, you can use the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/docs/simple-storage.html <code>simple-storage</code> module. | You can use the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/api-utils/docs/file.html <code>file</code>] module. However, if you just need some persistent storage and don't need the data to be available outside your add-on, you can use the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/docs/simple-storage.html <code>simple-storage</code>] module. | ||
'''How can I access data from my add-on's 'package.json' file, such as my add-on's name or version number? ''' | '''How can I access data from my add-on's 'package.json' file, such as my add-on's name or version number? ''' | ||
Use the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/docs/self.html <code>self</code> module. | Use the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/docs/self.html <code>self</code>] module. | ||
'''How can I debug my add-on? ''' | '''How can I debug my add-on? ''' | ||