This is the code
$('.Text').each(function() {
var data = $(this);
temp = data.text();
fs.appendFile('output.csv', temp , function(err) {
if (err)
console.log(err);
});
});
In first three iterations temp is
"I am komal" "Nice to meet u" "ok?"
But it comes as a single line
"I am komal""Nice to meet u""ok?"
I want each of them to be a row in a single column