filesystems - How to read and write into file using JavaScript -


can give sample code read , write file using javascript?

for completeness, op not state looking in browser (if is, has been stated, not possible)

however javascript per se allow this; can done server side javascript.

see documentation on javascript file class

edit: link sun docs have been moved oracle.

to keep times here's node.js documentation filesystem class: http://nodejs.org/docs/latest/api/fs.html

edit(2): can read files client side html5: http://www.html5rocks.com/en/tutorials/file/dndfiles/


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -