Em quarta-feira, 23 de outubro de 2019 12:45:02 UTC-3, Peng Yu escreveu: > > I'd like to fs.writeFileSync() to the same file after reading its content > by fs.readFileSync(). It is not clear to me whether fs.closeSync() (or any > other file closing function) is needed between writeFileSync() and > readFileSync() according to the documentation. Would you please let me > know? Thanks. > > https://nodejs.org/api/fs.html >
No, you don't need to close or other method since they are synchronous functions. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/29e8496d-943d-400b-98bb-9af4e63a5c5c%40googlegroups.com.