Javascript: Reading only the last x amount of lines of large server text file
问题 today I was working with very large log files and I want to display them via lighttpd on my RPi, but they grow bigger every day and thus soon will take a very long time to load. To prevent this problem I figured I would be able to have a button to read, say the last 500 lines from this log file. Of course I have not much experience with javascript, but I think it is doable, right? Anyway, I couldn't find any good tutorial describing how to do this in javascript, although I found this in PHP,