You could treat the log file as a datasource instead of a stream, and then use the .delete method.
When the record cout got to be at the max size, prior to adding a new entry (which would cause a size of Max + 1), .MoveFirst, then .Delete, then do your addition of a new record.
|