6 ms·
> So if it was a text file, you'd likely have some sort of lock when writing so do you handle errors when another user wants to access it, for example). I'm st
by olddustytrail 3y ago
> So if it was a text file, you'd likely have some sort of lock when writing so do you handle errors when another user wants to access it, for example).
I'm struggling to think of a scenario where this would be better than using sqlite, but I'm stumped!
- ItsBob 3y agoYou're right, it wouldn't be and I'd likely ask "why did you use a text file and not a database?". It was more about getting him to think deeper than surface level: if I open a file, that means it locks so I need to then think about what happens when someone else tries to open the file etc. It was a contrived example tbh.