I\'m trying to use FS to dynamically add lines on the top of my file. That part is working but how can I avoid duplications? This is my code:
function writeData()