May need to close the file handle after reading and / or writing. Not sure if its done automatically. I don't know node.js well enough to know for sure.