So I have a json file saved in “/resources/app” in my recently packaged app (this file is not package.json, but another file for storing information), and I am currently updating the information of the file inside my app using fs. There is a big problem however. Sometimes when I open the file it is completely empty. Is this a problem with storing the file in “/resources/app” or is it a problem with fs?
This seems to only happen after restarting the computer after the app has updated the file.