You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the posts.csv file gets overwritten and only contains the data in the fields variable, and none of its previous contents. I was expecting that fields be appended to the end of the file.
The text was updated successfully, but these errors were encountered:
On my vista/cygwin box when {flags:'a'} (thanks for the tip;) next appending starts from last line (not a new one) say
last (and only) line is:
3,'ala','ma','kota'
after next appending this file will be:
3,'ala','ma','kota',4,'ola','ma','psa'
5,'janek','ma','szczura'
notice: these should be a 3 lines while there are 2
Sorry about the delay, i missed this report while i was on hollidays. I just updated the readme to fix the flags typo. Considering Adam comment, this is somewhat expected since the last line of the csv isn't ended by a line break. I'm not sure what to do with this one, but a solution would be sth like:
var test = csv()
.transform(function(data, index){
if(index===0){
test.write('\n',true);
}
return data;
})
...;
I'm trying this:
However, the posts.csv file gets overwritten and only contains the data in the
fields
variable, and none of its previous contents. I was expecting thatfields
be appended to the end of the file.The text was updated successfully, but these errors were encountered: