I have an HTML page that I want to insert text from a text-only log file.
I can insert the text I need with the HTML object tag, but I get way more text than I need. Ideally, I’d just like the first line of this text file to be returned.
I need to do this without adding any libraries (jQuery), and no PHP or anything of the sort.
if you have the file as a string you can do
that gives you the first row