reading from scriptfile
#2

Assuming that logs are appended to the end of the file (rather than prepended to the beginning of the file) this is completely impractical. Sequential files must be read top-to-bottom and if the file is big it may cause severe lag.

It may work if new lines are prepended to the beginning. That will create the log in reverse order (newest first). You should be able to open the file with io_append. Then move the cursor to the beginning of the file (fseek) before writing.
Reply


Messages In This Thread
reading from scriptfile - by suni - 30.10.2015, 21:50
Re: reading from scriptfile - by Vince - 30.10.2015, 23:08
Re: reading from scriptfile - by jamesbond007 - 30.10.2015, 23:13

Forum Jump:


Users browsing this thread: 1 Guest(s)