S
S
Sergey Grigorov2018-04-18 01:09:37
Node.js
Sergey Grigorov, 2018-04-18 01:09:37

What does js.readFileSync do anyway?

Read the Node.JS documentation.
Either I'm a fool, or the skis are like that, but it says that the file:// protocol works in Node.JS
Tell me - I correctly understood that if you specify
fs.readFileSync(new URL("file://C:/Downloads /auth.json")), will it start reading the author.json file from the client's Downloads folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-18
@alexr64

if you specify
fs.readFileSync(new URL("file://C:/Downloads/auth.json")), will it start reading the author.json file from the Downloads folder on the client?

Do you yourself believe that you can read the fs of the client?
Reads a file at the given path.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question