I got a task to make a button on web page and by clicking on that button I have to read and write a file of local system. How it can be possible.?

Can it be done in node.js or can it be possible if i make any browser app.

Kindly help.