I tried to create a config file on my IoT device that is used for storing content when a user changes a setting via a menu. I found that every time the content of file is changed and then the system is unplugged, all of content in my config file disappears. This doesn't happen when I reboot or shutdown correctly but my device cannot avoid the user unplugging it without shutdown or reboot.
My Raspbian version is November 2016 Anyone know what I should do?