Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question