I´ve developed a VBS app which uses a text file for user´s config. The app is available to users from a NAS and they have access to update the config file to their needs.
A problem arises when users leave the config file in their text editor, just hitting save when they have made updates. This can cause other users to lose their last updates as the file is reverted to a previous state.
I am looking for a solution whereby users can update their config without affecting others. I thought maybe the way forward would be to provide a config app to update a non readable file, but this would lose the simplicity of a single readable config.
Ideally the OS would mark the file as being edited therefore only 1 user at a time could update it at a time. Whilst being updated the file must always be available in read only. Similar to when trying to edit an Excel doc.
Any useful advice would be appreciated.