摘要:
~~ 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. 阅读全文
摘要:
~~ 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.------- 阅读全文
摘要:
~~ 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 阅读全文