Environment: Electron 1.6.11 (which includes NodeJS) and Bootstrap 3.3.x for the UI
On the same page of my app I have a button to write to a file via
fs.writeFile and also a button to read from that same file via
After I do a write the subsequent read shows the ‘old’ file contents and not my changes which were just written. It seems that the file contents have been cached which is what the read is seeing.
Question: How to ensure that when I read from the file I get the most recent version of that file?