I currently have a CSV file stored in my assets folder.
The file path is 'assets/data.csv'
Here is how I am able to read the contents of the file:
readLocalCSVFile() {
this._http.get('assets/data.csv', { responseType: 'text' }).subscribe(res => {
console.log(res);
}, (error) => {
console.error(error);
})
}
Is there a way for me to clear the existing content within the file and replace it with new content?