Question: The following is ionic code to read a file. filesystem.readAsText(this.filesystem.datadirectory,mydata.dat) .then( (txt) => { process(txt); }, (err) => { error(err); } ); What does the
- The following is ionic code to read a file.
filesystem.readAsText(this.filesystem.datadirectory,mydata.dat)
.then(
(txt) => { process(txt); },
(err) => { error(err); }
);
What does the readAsText() function return? What happens if the file does not exist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
