I need to capture the last 5 lines from my “write to log” function so I can add it to a debug email. I can’t think of an easy way to do this.
I did think I could have an array with 5 items in it, but I’d still need to shuffle the existing items to add the current data.
Any ideas ?
I’m using vb.net 2005
use a queue. if when you add a new item to the queue it exceeds 6, dequeue one item.