Note: This is part of a longer series.
This demonstrates how File I/O works in XD. File I/O is all asynchronous, and so you'll need to use promises or async/await.
Sections to note in main.js
:
- Line 7: Access to the file system is via UXP's storage module.
- Line 11: We're going to store settings globally.