How to read and write local file using angular 2
问题 In angular 2, is there any way to read/write files from absolute path? I have used ' filesaver ' library to save the file, where I save the file locally in txt/json format. Example : let blob = new Blob([document.getElementById('exportFile').innerHTML],{ type: "text/plain;charset=utf-8" }); saveAs(blob, "export.json"); Now I want to read and write/edit export.json file. How can I refer it for the next time? Is there any other way or is there any good library available for these operations?