JSconf_logo

Javascript: How to read file with FileReader

We can use method readAsBinaryString or readAsText to read file. Example 1: readAsBinaryString Online demo: http://demo.tutorialspots.com/FileReader/readAsBinaryString.html Example 2: readAsText Demo online: http://demo.tutorialspots.com/FileReader/readAsText.html