Hello All,
I'm making a ToDo Application that has just reached the stage where we need durable storage to continue developing features (the list of tasks should persist through each running of the .exe).
- (side note: i do love databases, but i find plaintext formats better for interoperability and reducing complexity by avoiding a full-blow Postgres Implementation).
My original Idea was to do a 2-step cloning process to create a CSV file that the program reads and writes to on start and stop:
- when the program starts, it reads the proper CSV, and fills the task list with any existing task records.
- on close, it truncates that same file, and places the records it currently holds into the contents of the file.
Is this a good method for durable storage in rust? or is there a language feature that I could use for durable storage instead?
Non-functional: the app is currently only focused on a single person and his/her/their tasks, so synchronizing between diverse sources isn't an issue for now.
As always, I appreciate everyone's expertise and patience with a new rust programmer.
Bes Regards.