We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm doing some research into the usage of Table in processing. I have been able to generate a .csv file from the example code in the processing documentation. However whenever a user enters his name to save the score, it overwrites the file and the file only has 1 row of data. How can I create put the new data in a new row every time a user saves the score? Thank you.
Answers
https://processing.org/reference/TableRow.html
You need to load the table, get user input and add a row and save it back
How do I add a row? Whenever I use newRow.setString, it overwrites the existing row.
https://processing.org/reference/TableRow.html
Isn’t there a addRow in the example..?
I've fixed it by simply stop overwriting the file in the code and loading the file on startup. Now when I go to retrieve values from the .csv file using sortReverse, the player names become glitchy if two or more players have the same score. Any fix on that?
I've fixed it by putting sortReverse into a mouseClicked function. Everything is working perfectly now!
Thanks for the help Chrisir!
You did the most part....