-
Notifications
You must be signed in to change notification settings - Fork 43
Check 01 read file
Lizaveta edited this page Dec 7, 2023
·
4 revisions
Description of the cross-check process 01-read-file:
Video with the example of cross-check
- Check the code for the presence of synchronous methods of the fs module (you can use the
ctrl + fkey combination and enterSyncin the search field that appears) and setTimeout(). If synchronous methods or a timer are used, the task is considered not completed - 0 points. - Make sure that a ReadStream is used to read the file. If a stream is not used for reading the file, the task is considered not completed - 0 points.
-
In the root directory of the repository, execute the command
node 01-read-fileand make sure that the contents of thetext.txtfile are output to the console (the presence/absence of empty lines at the end of the file is not checked). In case of errors or empty output when there is text intext.txt, the task is considered not completed - 0 points. - Change the contents of the
text.txtfile and run the commandnode 01-read-fileagain. The result should correspond to the current state oftext.txt, otherwise, the task is considered not completed - 0 points.
If all points are successfully checked, 20 points are awarded for the task.