var cmds = '';
for (var field in post) {
var value = post[field];
cmds += ....
}
writeStream.write(cmds);
Why do you first concatenate and only then write, why not do
for (var field in post) {
var value = post[field];
writeStream.write(...);
> --
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nodejs/-/yQ3M4ydP9PcJ.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en.
>
--
Linus G Thiel
Hansson & Larsson
http://hanssonlarsson.se/
+46 709 89 03 85