You want the log-off info to be on the line after the log-on info and whe other stuff has been logged afterwards, right?
Keep the string written to the log file on log-on in memory and search for it when you exit the program. Then insert the log off string there.
//Anders




Reply With Quote