FS module not working

hey there, I have this code:
setInterval(() => {
require(‘fs’).writeFileSync("./log.txt", log);
}, 5000)
to write to the logs but it changes the content in the file

Hey @Milo123459,

Files edited using code or programmatically will not update the files in the Glitch editor immediately, you will have to run refresh in the terminal to see those changes.

1 Like

oh lol, thanks have a good day!