Answers for "angular read text file from local path"

2

read file javascript

// As with JSON, use the Fetch API & ES6
fetch('something.txt')
  .then(response => response.text())
  .then(data => {
  	// Do something with your data
  	console.log(data);
  });
Posted by: Guest on March-15-2020
1

html get text from file

<embed src="file.txt"> // This will show the text contained in file.txt in the page
Posted by: Guest on November-14-2020

Code answers related to "angular read text file from local path"

Browse Popular Code Answers by Language