html - How to make an HTML5 file grow? -


i writing logger in c++ generates html5 output in real time. html file must readable @ time, while growing.

so far open file, delete last few lines close block (</body></html>), add new log messages , close block again.

is approach, or there better solutions?

  1. another approach read (through xmlhttprequest) log file directly javascript inside html file , generate html within browser. may end being quite slow large log files though (100 mb+).
  2. if thing need wrap textual log file header , footer, can create markup needed , add <iframe src="log.txt"> tag between header , footer, src attribute point raw textual log file. wouldn't suite if need format log somehow, of course.

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -