• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saving to external storage public directory

 
Lovro Bajc
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

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.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens when the code is run a second time? Which lines of code are or are not being executed? With what results?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic