I want to show some numbers of my txt files inside a <table>...
In theory the numbers should replace the 3 black rows...
I tried nearly anything: <object>, JavaScript, HTML etc...
Welcome to Stackoverflow! Please post your code showing your attempt so far. See how to create a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) for help on writing a good question.
– Joseph ChoMay 14 '19 at 15:22
2
Possible duplicate of [Create HTML table from text file using Javascript?](https://stackoverflow.com/questions/18192777/create-html-table-from-text-file-using-javascript)
– user115014May 14 '19 at 15:23
1 Answers1
1
If you are providing your content with a server, you can use the Fetch API to fetch one of your files:
fetch('path/to/file.txt')
I would recommend storing data in a .json file rather than a .txt file.