Answers for "why when i read file content i find html txt"

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
1

javascript read file lines into array vanilla

const fileList = event.target.files;
let fileContent = "";

const fr = new FileReader();
fr.onload = () => {
  fileContent = fr.result;
  console.log('Commands', fileContent);
}

fr.readAsText(fileList[0]);
Posted by: Guest on June-29-2020

Code answers related to "why when i read file content i find html txt"

Browse Popular Code Answers by Language