Hi,
I have initializing the db file once I start my application. But there is a scenario where I need to replace the contents of the db file with new data.
When I do the following with the new data,, which is fileData, nothing happens. My old data remains in the db file.
db.defaults(fileData)
.write();
So I was thinking maybe need to clear the db file before running the above code.
But nothing is working. What am I doing wrong?
Hi, I have initializing the db file once I start my application. But there is a scenario where I need to replace the contents of the db file with new data.
When I do the following with the new data,, which is fileData, nothing happens. My old data remains in the db file.
So I was thinking maybe need to clear the db file before running the above code. But nothing is working. What am I doing wrong?