READ what I wrote at "Explanation" in my last post.
There is no manual file read or write in ESO! It ONLY happens at loading screens, login, logout, reloadui.
Not as you call a function.
All you need to do is update the table and it will be automatically written/read to/from your SV file upon loading screen/reloadui/logout. That's all.
Access to files via lua in ESO is forbidden.
https://wiki.esoui.com/Storing_data_and_accessing_files