const fs = require('fs'); console.log("Hello!") finalData=[] firstLoad=true function update(){ changed=false fs.readFile("C:\\Users\\sigon\\Documents\\memory", (err,data)=>{ var fileContents = data.toString().split("\n"); for (i=0;i