M
Mark
Hi, I have an app that needs to maintain a log file of certain events that
occur. Normally FILE I/O appends new text to the end of a file. However
one of the requirements of my app is that the most recent log entries need
to be at the beginning of the file. My initial thought is that the file
would have to be rewritten every time a new log entry is added. Can anyone
suggest a better/simpler way?
An alternative would be to write the log as normal, then use a separate app
to post-process the log file into the most-recent-first order required.
Thanks alot!
Mark
occur. Normally FILE I/O appends new text to the end of a file. However
one of the requirements of my app is that the most recent log entries need
to be at the beginning of the file. My initial thought is that the file
would have to be rewritten every time a new log entry is added. Can anyone
suggest a better/simpler way?
An alternative would be to write the log as normal, then use a separate app
to post-process the log file into the most-recent-first order required.
Thanks alot!
Mark