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 20:36] – odefta | java-script:read-file [2023/08/19 22:19] (current) – ↷ Links adapted because of a move operation 217.113.194.57 | ||
|---|---|---|---|
| Line 104: | Line 104: | ||
| ===== Read a file in Node.js ===== | ===== Read a file in Node.js ===== | ||
| + | |||
| + | First you should [[java-script: | ||
| <code javascript fileReader.js> | <code javascript fileReader.js> | ||
| Line 130: | Line 132: | ||
| </ | </ | ||
| + | To run it: | ||
| + | < | ||
| + | node ./index.js C:/test.txt | ||
| + | </ | ||
java-script/read-file.1691181409.txt.gz · Last modified: (external edit)
