Z
Zenon
I have been tasked with writing code which overrides the TraceListener
class for the purpose of limiting the size of the log file. Basically,
when the log file grows to a certain size, I need to begin overwriting
it from the beginning. I am using a ReadWrite Stream to do this. My
problem is the fact that the lines which are to overwrite the old ones
are not necessarily going to be the same size. For instance, if the
first line in the log file was 20 bytes and then a new line character,
the line to overwrite it might be 26 characters before its new line.
How can I insert this without overwriting part of the next line in the
stream. Is there any way to "insert" into the stream?
thanks,
Z
class for the purpose of limiting the size of the log file. Basically,
when the log file grows to a certain size, I need to begin overwriting
it from the beginning. I am using a ReadWrite Stream to do this. My
problem is the fact that the lines which are to overwrite the old ones
are not necessarily going to be the same size. For instance, if the
first line in the log file was 20 bytes and then a new line character,
the line to overwrite it might be 26 characters before its new line.
How can I insert this without overwriting part of the next line in the
stream. Is there any way to "insert" into the stream?
thanks,
Z