how to read a firebase txt file

Solutions on MaxInterview for how to read a firebase txt file by the best coders in the world

showing results for - "how to read a firebase txt file"
Maelyne
09 Sep 2019
1const ref = this.storage.ref('array.txt');
2ref.getDownloadURL().subscribe(data => {
3  fetch(data)
4  .then(function(response) {
5    response.text().then(function(text) {
6      console.log(text);
7    });
8  });
9});
10