Re: Constant file size
- From: "Jon Skeet [C# MVP]" <skeet@xxxxxxxxx>
- Date: 18 Aug 2006 06:51:18 -0700
Adrián E. Córdoba wrote:
Thank you for your comments, Jon.
1) It is not necessary the file size will be exactly XX MB. It's enough
to keep constant the number of lines.
Okay.
2) Working with a "rolling log file" and writting in the middle of the
file, make the file hard to read if you open the file with simple text
applications like Notepad because you need to find the oldest line in
the file. It is possible but it isn't desirable.
In that case, unless you *really* want to rewrite the whole log file
each time, I suggest you roll over to different log files (deleting old
ones) rather than try to keep it all in one log.
Jon
.
- Follow-Ups:
- Re: Constant file size
- From: Andy
- Re: Constant file size
- References:
- Constant file size
- From: Adrián E. Córdoba
- Re: Constant file size
- From: Jon Skeet [C# MVP]
- Re: Constant file size
- From: Adrián E. Córdoba
- Constant file size
- Prev by Date: Re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"
- Next by Date: Re: Is the reading/writing to the registry slow?
- Previous by thread: Re: Constant file size
- Next by thread: Re: Constant file size
- Index(es):
Relevant Pages
|