I’m trying to read file content, and put it in the text area so I can update it, then write the update content back to the file if ‘save’ button clicked.
please see the screen below:
1, the first time, the file content is empty, if I input ‘the first time’ and click save. and it writes update content into the file.
2, but if I change content again, like input ‘Second time’, then click ‘savf’, the text in text area will show ‘the first time’ which is previous value.