摘要: ~~ MY FIRST ASYNC I/O! ~~Write a program that uses a single asynchronous filesystem operationto read a file and print the number of newlines it contains to theconsole (stdout), similar to running `cat file | wc -l`.The full path to the file to read will be provided as the firstcommand-line argument. 阅读全文
posted @ 2013-12-04 18:40 星堡a 阅读(178) 评论(0) 推荐(0) 编辑
摘要: ~~ MY FIRST I/O! ~~Write a program that uses a single synchronous filesystem operation toread a file and print the number of newlines it contains to theconsole (stdout), similar to running `cat file | wc -l`.The full path to the file to read will be provided as the firstcommand-line argument.------- 阅读全文
posted @ 2013-12-04 18:12 星堡a 阅读(215) 评论(0) 推荐(0) 编辑
摘要: ~~ BABY STEPS ~~Write a program that accepts one or more numbers as command-linearguments and prints the sum of those numbers to the console (stdout).----------------------------------------------------------------------HINTS:You can access command-line arguments via the global `process` object.The 阅读全文
posted @ 2013-12-04 16:53 星堡a 阅读(288) 评论(0) 推荐(0) 编辑