I am trying to create an onClick method where upon pressed state application would save data in csv to specific folder on public directory. After every click, the application would append the data to that single file which was created the first time. When I run the application, the folder is created and also is the "happy_log.csv, however when i further press the save button it does not add extra line with new data. So far my code looks like this:
assistance on this matter would be much appreciated.