node argument

22 views
Skip to first unread message

TUSHAR SONI

unread,
Aug 28, 2014, 5:59:42 PM8/28/14
to cs164-...@googlegroups.com
In following line in node.js

fs.readFile(file, [encoding], [callback]);

So if in argument there is no encoding argument even if file and call back argument exist so what should i do at this(encoding) place. is it remain blank or callback take its place?

thanks,

David J. Malan

unread,
Aug 28, 2014, 6:17:09 PM8/28/14
to cs164-...@googlegroups.com
The callback will take its place. (I.e., pass 2 args instead of 3.) Do consult the latest docs, though!


djm


--
You received this message because you are subscribed to the Google Groups "cs164-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs164-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages