A
A
Andrey Astafiev2016-07-18 17:42:52
JavaScript
Andrey Astafiev, 2016-07-18 17:42:52

How to read and write a file in JavaScript?

The *.csv format file must be read and the information written into it again. Actions take place in the browser.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2016-07-18
@bingo347

You can read the file through FileApi - but the user must explicitly give you the file
. There is no write to the file, but it may appear in the future, at least in the drafts of the FileApi standard there are already outlines.
You can try to make a crutch, through data-uri + download-link
In general, file manipulation is the prerogative of the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question