Send same json in the file at each script executionfs writefile new line not workingHow can I pretty-print JSON in a shell script?Returning JSON from a PHP ScriptPosting a File and Associated Data to a RESTful WebService preferably as JSONHow can I parse a JSON file with PHP?Using Node.JS, how do I read a JSON file into (server) memory?Sending command line arguments to npm scriptHow do I write JSON data to a file?How to prettyprint a JSON file?Link and execute external JavaScript file hosted on GitHubAppend element in JSON and don't overwritting
What's the 1 inch size square knob sticking out of wall?
Idioms: Should it be " the internet is a seemingly infinite well of information" or "the internet is a seemingly infinite wealth of information"
Why does the salt in the oceans not sink to the bottom?
What kind of world would drive brains to evolve high-throughput sensory?
Why is chess failing to attract big name sponsors?
How can Kazakhstan perform MITM attacks on all HTTPS traffic?
Issue with ContourPlot
Alternative methods for solving a system of one linear one non linear simultaneous equations
Using paddles to support a bug net
Why must API keys be kept private?
Can I pay with HKD in Macau or Shenzhen?
Why is DC so, so, so Democratic?
Can you drop a weapon/item when it is not your turn?
Using "Kollege" as "university friend"?
Raw curve25519 public key points
Are rockets faster than airplanes?
How do changes to your speed that occur on your own turn affect your available movement?
Grid/table with lots of buttons
Can't understand how static works exactly
Historicity doubted by Romans
Sci-fi short story: plants attracting spaceship and using them as a agents of pollination between two planets
What is the spanish equivalent of "the boys are sitting"?
Is an easily guessed plot twist a good plot twist?
What the purpose of the fuel shutoff valve?
Send same json in the file at each script execution
fs writefile new line not workingHow can I pretty-print JSON in a shell script?Returning JSON from a PHP ScriptPosting a File and Associated Data to a RESTful WebService preferably as JSONHow can I parse a JSON file with PHP?Using Node.JS, how do I read a JSON file into (server) memory?Sending command line arguments to npm scriptHow do I write JSON data to a file?How to prettyprint a JSON file?Link and execute external JavaScript file hosted on GitHubAppend element in JSON and don't overwritting
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm writting a JSON and adding into a file.
I don't know how can I add the same JSON in the same array...
When I execute the script, i need to add the new value into the file and not overwritting
I just need to append the JSON. If I use appenFile, create 3 array and I need only 1 array (Look expected result)
Need help, thanks
var table = []
table.push("executionDate":date,
"issueID":key,
"priority":
"jira": priority,
"computed":score1
,
"expectedValue":
"jira": expected,
"computed":score2
)
var json = JSON.stringify(table);
fs.writeFile('myjsonfile.json', json, 'utf8', function (err)
if (err) console.error(err)
)
Actual result:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
Expected resultat if I execute the script 2 times:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
javascript json
add a comment |
I'm writting a JSON and adding into a file.
I don't know how can I add the same JSON in the same array...
When I execute the script, i need to add the new value into the file and not overwritting
I just need to append the JSON. If I use appenFile, create 3 array and I need only 1 array (Look expected result)
Need help, thanks
var table = []
table.push("executionDate":date,
"issueID":key,
"priority":
"jira": priority,
"computed":score1
,
"expectedValue":
"jira": expected,
"computed":score2
)
var json = JSON.stringify(table);
fs.writeFile('myjsonfile.json', json, 'utf8', function (err)
if (err) console.error(err)
)
Actual result:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
Expected resultat if I execute the script 2 times:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
javascript json
1
Possible duplicate of fs writefile new line not working
– Scott Hunter
Mar 26 at 14:42
I f I use appendFile, he creates me 3 array and I need only 1 array with all element inside ... (Look expected result)
– jeremy
Mar 26 at 14:45
Then show how you usedappendFile
.
– Scott Hunter
Mar 26 at 14:55
I just changed "writeFile" by "AppendFile" ...
– jeremy
Mar 26 at 14:56
add a comment |
I'm writting a JSON and adding into a file.
I don't know how can I add the same JSON in the same array...
When I execute the script, i need to add the new value into the file and not overwritting
I just need to append the JSON. If I use appenFile, create 3 array and I need only 1 array (Look expected result)
Need help, thanks
var table = []
table.push("executionDate":date,
"issueID":key,
"priority":
"jira": priority,
"computed":score1
,
"expectedValue":
"jira": expected,
"computed":score2
)
var json = JSON.stringify(table);
fs.writeFile('myjsonfile.json', json, 'utf8', function (err)
if (err) console.error(err)
)
Actual result:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
Expected resultat if I execute the script 2 times:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
javascript json
I'm writting a JSON and adding into a file.
I don't know how can I add the same JSON in the same array...
When I execute the script, i need to add the new value into the file and not overwritting
I just need to append the JSON. If I use appenFile, create 3 array and I need only 1 array (Look expected result)
Need help, thanks
var table = []
table.push("executionDate":date,
"issueID":key,
"priority":
"jira": priority,
"computed":score1
,
"expectedValue":
"jira": expected,
"computed":score2
)
var json = JSON.stringify(table);
fs.writeFile('myjsonfile.json', json, 'utf8', function (err)
if (err) console.error(err)
)
Actual result:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
Expected resultat if I execute the script 2 times:
[
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
,
"executionDate": 25 / 03 / 2019,
"issueID": 1,
"priority":
"jira": important,
"computed": 10
,
"expectedValue":
"jira": expected,
"computed": 20
]
javascript json
javascript json
edited Mar 26 at 14:50
jeremy
asked Mar 26 at 14:39
jeremyjeremy
447 bronze badges
447 bronze badges
1
Possible duplicate of fs writefile new line not working
– Scott Hunter
Mar 26 at 14:42
I f I use appendFile, he creates me 3 array and I need only 1 array with all element inside ... (Look expected result)
– jeremy
Mar 26 at 14:45
Then show how you usedappendFile
.
– Scott Hunter
Mar 26 at 14:55
I just changed "writeFile" by "AppendFile" ...
– jeremy
Mar 26 at 14:56
add a comment |
1
Possible duplicate of fs writefile new line not working
– Scott Hunter
Mar 26 at 14:42
I f I use appendFile, he creates me 3 array and I need only 1 array with all element inside ... (Look expected result)
– jeremy
Mar 26 at 14:45
Then show how you usedappendFile
.
– Scott Hunter
Mar 26 at 14:55
I just changed "writeFile" by "AppendFile" ...
– jeremy
Mar 26 at 14:56
1
1
Possible duplicate of fs writefile new line not working
– Scott Hunter
Mar 26 at 14:42
Possible duplicate of fs writefile new line not working
– Scott Hunter
Mar 26 at 14:42
I f I use appendFile, he creates me 3 array and I need only 1 array with all element inside ... (Look expected result)
– jeremy
Mar 26 at 14:45
I f I use appendFile, he creates me 3 array and I need only 1 array with all element inside ... (Look expected result)
– jeremy
Mar 26 at 14:45
Then show how you used
appendFile
.– Scott Hunter
Mar 26 at 14:55
Then show how you used
appendFile
.– Scott Hunter
Mar 26 at 14:55
I just changed "writeFile" by "AppendFile" ...
– jeremy
Mar 26 at 14:56
I just changed "writeFile" by "AppendFile" ...
– jeremy
Mar 26 at 14:56
add a comment |
1 Answer
1
active
oldest
votes
Im not sure if i understand it well but a fast solution is:
<html>
<script>
var table = [];
console.log(table);
function findInArrAndPush(obj)
const found = table.some(el => el.issueID === obj.issueID);
if (!found) table.push(obj);
return table;
for(i=0;i<3;i++)
var id = i;
var objToAdd = "executionDate":"01-01-1000",
"issueID":id,
"priority":
"jira": "1",
"computed":"1"
,
"expectedValue":
"jira": "2",
"computed":"2"
;
console.log(findInArrAndPush(objToAdd));
//ADD TO FILE HERE
</script>
<body>
</body>
</html>
the only thing you have to do here is print the result to the file.
Yes this is the idea, but logically, the time must be different (speaking about seconds for example) because you can't execute in the same time ...
– jeremy
Mar 26 at 15:20
I think that the only change that you have to do is to instead write json in the file, write findInArrAndPush(objToAdd), and doing table, equal to read the origin file. I dont know if you understand what Im trying to say
– Arm144
Mar 26 at 15:27
Thanks for your answer, I try do to something and if i'm block, I ask you for more information :)
– jeremy
Mar 26 at 15:29
No problem, just dont forget to vote positive if my answer was usefull :P
– Arm144
Mar 26 at 15:33
1
The thing of working with files is that you only can read data and write data again, but never do logic inside it, its a text plain file. So by definition it will be overwitten. And to do it mannually just add the write procces to a function and pass the object to write as parameter when you press a button for example. With append it will add to a file, the result of merge 2 files, but its impossible to filter the repited elements if you dont overwrite.
– Arm144
Mar 26 at 16:30
|
show 4 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55359840%2fsend-same-json-in-the-file-at-each-script-execution%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Im not sure if i understand it well but a fast solution is:
<html>
<script>
var table = [];
console.log(table);
function findInArrAndPush(obj)
const found = table.some(el => el.issueID === obj.issueID);
if (!found) table.push(obj);
return table;
for(i=0;i<3;i++)
var id = i;
var objToAdd = "executionDate":"01-01-1000",
"issueID":id,
"priority":
"jira": "1",
"computed":"1"
,
"expectedValue":
"jira": "2",
"computed":"2"
;
console.log(findInArrAndPush(objToAdd));
//ADD TO FILE HERE
</script>
<body>
</body>
</html>
the only thing you have to do here is print the result to the file.
Yes this is the idea, but logically, the time must be different (speaking about seconds for example) because you can't execute in the same time ...
– jeremy
Mar 26 at 15:20
I think that the only change that you have to do is to instead write json in the file, write findInArrAndPush(objToAdd), and doing table, equal to read the origin file. I dont know if you understand what Im trying to say
– Arm144
Mar 26 at 15:27
Thanks for your answer, I try do to something and if i'm block, I ask you for more information :)
– jeremy
Mar 26 at 15:29
No problem, just dont forget to vote positive if my answer was usefull :P
– Arm144
Mar 26 at 15:33
1
The thing of working with files is that you only can read data and write data again, but never do logic inside it, its a text plain file. So by definition it will be overwitten. And to do it mannually just add the write procces to a function and pass the object to write as parameter when you press a button for example. With append it will add to a file, the result of merge 2 files, but its impossible to filter the repited elements if you dont overwrite.
– Arm144
Mar 26 at 16:30
|
show 4 more comments
Im not sure if i understand it well but a fast solution is:
<html>
<script>
var table = [];
console.log(table);
function findInArrAndPush(obj)
const found = table.some(el => el.issueID === obj.issueID);
if (!found) table.push(obj);
return table;
for(i=0;i<3;i++)
var id = i;
var objToAdd = "executionDate":"01-01-1000",
"issueID":id,
"priority":
"jira": "1",
"computed":"1"
,
"expectedValue":
"jira": "2",
"computed":"2"
;
console.log(findInArrAndPush(objToAdd));
//ADD TO FILE HERE
</script>
<body>
</body>
</html>
the only thing you have to do here is print the result to the file.
Yes this is the idea, but logically, the time must be different (speaking about seconds for example) because you can't execute in the same time ...
– jeremy
Mar 26 at 15:20
I think that the only change that you have to do is to instead write json in the file, write findInArrAndPush(objToAdd), and doing table, equal to read the origin file. I dont know if you understand what Im trying to say
– Arm144
Mar 26 at 15:27
Thanks for your answer, I try do to something and if i'm block, I ask you for more information :)
– jeremy
Mar 26 at 15:29
No problem, just dont forget to vote positive if my answer was usefull :P
– Arm144
Mar 26 at 15:33
1
The thing of working with files is that you only can read data and write data again, but never do logic inside it, its a text plain file. So by definition it will be overwitten. And to do it mannually just add the write procces to a function and pass the object to write as parameter when you press a button for example. With append it will add to a file, the result of merge 2 files, but its impossible to filter the repited elements if you dont overwrite.
– Arm144
Mar 26 at 16:30
|
show 4 more comments
Im not sure if i understand it well but a fast solution is:
<html>
<script>
var table = [];
console.log(table);
function findInArrAndPush(obj)
const found = table.some(el => el.issueID === obj.issueID);
if (!found) table.push(obj);
return table;
for(i=0;i<3;i++)
var id = i;
var objToAdd = "executionDate":"01-01-1000",
"issueID":id,
"priority":
"jira": "1",
"computed":"1"
,
"expectedValue":
"jira": "2",
"computed":"2"
;
console.log(findInArrAndPush(objToAdd));
//ADD TO FILE HERE
</script>
<body>
</body>
</html>
the only thing you have to do here is print the result to the file.
Im not sure if i understand it well but a fast solution is:
<html>
<script>
var table = [];
console.log(table);
function findInArrAndPush(obj)
const found = table.some(el => el.issueID === obj.issueID);
if (!found) table.push(obj);
return table;
for(i=0;i<3;i++)
var id = i;
var objToAdd = "executionDate":"01-01-1000",
"issueID":id,
"priority":
"jira": "1",
"computed":"1"
,
"expectedValue":
"jira": "2",
"computed":"2"
;
console.log(findInArrAndPush(objToAdd));
//ADD TO FILE HERE
</script>
<body>
</body>
</html>
the only thing you have to do here is print the result to the file.
<html>
<script>
var table = [];
console.log(table);
function findInArrAndPush(obj)
const found = table.some(el => el.issueID === obj.issueID);
if (!found) table.push(obj);
return table;
for(i=0;i<3;i++)
var id = i;
var objToAdd = "executionDate":"01-01-1000",
"issueID":id,
"priority":
"jira": "1",
"computed":"1"
,
"expectedValue":
"jira": "2",
"computed":"2"
;
console.log(findInArrAndPush(objToAdd));
//ADD TO FILE HERE
</script>
<body>
</body>
</html>
<html>
<script>
var table = [];
console.log(table);
function findInArrAndPush(obj)
const found = table.some(el => el.issueID === obj.issueID);
if (!found) table.push(obj);
return table;
for(i=0;i<3;i++)
var id = i;
var objToAdd = "executionDate":"01-01-1000",
"issueID":id,
"priority":
"jira": "1",
"computed":"1"
,
"expectedValue":
"jira": "2",
"computed":"2"
;
console.log(findInArrAndPush(objToAdd));
//ADD TO FILE HERE
</script>
<body>
</body>
</html>
edited Mar 26 at 15:17
answered Mar 26 at 15:02
Arm144Arm144
408 bronze badges
408 bronze badges
Yes this is the idea, but logically, the time must be different (speaking about seconds for example) because you can't execute in the same time ...
– jeremy
Mar 26 at 15:20
I think that the only change that you have to do is to instead write json in the file, write findInArrAndPush(objToAdd), and doing table, equal to read the origin file. I dont know if you understand what Im trying to say
– Arm144
Mar 26 at 15:27
Thanks for your answer, I try do to something and if i'm block, I ask you for more information :)
– jeremy
Mar 26 at 15:29
No problem, just dont forget to vote positive if my answer was usefull :P
– Arm144
Mar 26 at 15:33
1
The thing of working with files is that you only can read data and write data again, but never do logic inside it, its a text plain file. So by definition it will be overwitten. And to do it mannually just add the write procces to a function and pass the object to write as parameter when you press a button for example. With append it will add to a file, the result of merge 2 files, but its impossible to filter the repited elements if you dont overwrite.
– Arm144
Mar 26 at 16:30
|
show 4 more comments
Yes this is the idea, but logically, the time must be different (speaking about seconds for example) because you can't execute in the same time ...
– jeremy
Mar 26 at 15:20
I think that the only change that you have to do is to instead write json in the file, write findInArrAndPush(objToAdd), and doing table, equal to read the origin file. I dont know if you understand what Im trying to say
– Arm144
Mar 26 at 15:27
Thanks for your answer, I try do to something and if i'm block, I ask you for more information :)
– jeremy
Mar 26 at 15:29
No problem, just dont forget to vote positive if my answer was usefull :P
– Arm144
Mar 26 at 15:33
1
The thing of working with files is that you only can read data and write data again, but never do logic inside it, its a text plain file. So by definition it will be overwitten. And to do it mannually just add the write procces to a function and pass the object to write as parameter when you press a button for example. With append it will add to a file, the result of merge 2 files, but its impossible to filter the repited elements if you dont overwrite.
– Arm144
Mar 26 at 16:30
Yes this is the idea, but logically, the time must be different (speaking about seconds for example) because you can't execute in the same time ...
– jeremy
Mar 26 at 15:20
Yes this is the idea, but logically, the time must be different (speaking about seconds for example) because you can't execute in the same time ...
– jeremy
Mar 26 at 15:20
I think that the only change that you have to do is to instead write json in the file, write findInArrAndPush(objToAdd), and doing table, equal to read the origin file. I dont know if you understand what Im trying to say
– Arm144
Mar 26 at 15:27
I think that the only change that you have to do is to instead write json in the file, write findInArrAndPush(objToAdd), and doing table, equal to read the origin file. I dont know if you understand what Im trying to say
– Arm144
Mar 26 at 15:27
Thanks for your answer, I try do to something and if i'm block, I ask you for more information :)
– jeremy
Mar 26 at 15:29
Thanks for your answer, I try do to something and if i'm block, I ask you for more information :)
– jeremy
Mar 26 at 15:29
No problem, just dont forget to vote positive if my answer was usefull :P
– Arm144
Mar 26 at 15:33
No problem, just dont forget to vote positive if my answer was usefull :P
– Arm144
Mar 26 at 15:33
1
1
The thing of working with files is that you only can read data and write data again, but never do logic inside it, its a text plain file. So by definition it will be overwitten. And to do it mannually just add the write procces to a function and pass the object to write as parameter when you press a button for example. With append it will add to a file, the result of merge 2 files, but its impossible to filter the repited elements if you dont overwrite.
– Arm144
Mar 26 at 16:30
The thing of working with files is that you only can read data and write data again, but never do logic inside it, its a text plain file. So by definition it will be overwitten. And to do it mannually just add the write procces to a function and pass the object to write as parameter when you press a button for example. With append it will add to a file, the result of merge 2 files, but its impossible to filter the repited elements if you dont overwrite.
– Arm144
Mar 26 at 16:30
|
show 4 more comments
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55359840%2fsend-same-json-in-the-file-at-each-script-execution%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Possible duplicate of fs writefile new line not working
– Scott Hunter
Mar 26 at 14:42
I f I use appendFile, he creates me 3 array and I need only 1 array with all element inside ... (Look expected result)
– jeremy
Mar 26 at 14:45
Then show how you used
appendFile
.– Scott Hunter
Mar 26 at 14:55
I just changed "writeFile" by "AppendFile" ...
– jeremy
Mar 26 at 14:56