0

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...

Alon Eitan
  • 11,997
  • 8
  • 49
  • 58
R00T
  • 7
  • 1
  • 3
    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 Cho May 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) – user115014 May 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.

Kobe
  • 6,226
  • 1
  • 14
  • 35