What is the best/simple way to read/save a string inside a file using Electron?


#1

We are using a stringified json object to store some setting infos in our app.
Is there a simple way/module to do it in Electron?

FYI: we may have more than 100 files with different names inside different folders.

Thanks.


#2

Electron includes Node, so most projects use the fs module for all file manipulation. If you need tricks beyond what fs gives you, fs-extra is an option.


#3

Great, it is realy helpful