java-script:read-file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java-script:read-file [2023/08/04 23:40] – odefta | java-script:read-file [2023/08/20 01:19] (current) – ↷ Links adapted because of a move operation 217.113.194.57 | ||
---|---|---|---|
Line 105: | Line 105: | ||
===== Read a file in Node.js ===== | ===== Read a file in Node.js ===== | ||
- | First you should [[java-script: | + | First you should [[java-script: |
<code javascript fileReader.js> | <code javascript fileReader.js> | ||
Line 132: | Line 132: | ||
</ | </ | ||
+ | To run it: | ||
+ | < | ||
+ | node ./index.js C:/test.txt | ||
+ | </ | ||
java-script/read-file.1691181637.txt.gz · Last modified: 2023/08/04 23:40 by odefta