Skip to content

fs appendFileSync appends twice #23969

@noamso1

Description

@noamso1

every call to appendFileSync writes the string twice to the file!! what to do?
here's my code:

var http = require('http');
var fs = require('fs');

http.createServer(function (req, res) {
  fs.appendFileSync('1.txt', 'A', 'utf8');
  res.write('123');
  res.end();
}).listen(9999);

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions