🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15599

Re: Trimming file

#15599
From: Bob Gonder
Date: Sun, 22 Jun 2003 00:16
13 lines
1448 bytes
"Lapo" <lapoguidi@inwind.it> wrote:

>Now I added the possibility to save the Memo log in a logfile.
>The problem is that this logfile will be big after some time, so I would
>like to trim it to remain under a predefined size.

If you append to the end of the log (new entries last)
Copy the file, leaving out the old data, then append.


If you insert to the front of the log (new entries first)
well, you are copying the file anway, so just quit copying when you
hit the limit.
Technical Details
Message-ID: <c6t9fvkoasea75dqb2766bamk6b0n1se1u@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ef4c43e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2284525cda09a7d2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-21 17:24:01 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Trimming file
Date: Sat, 21 Jun 2003 17:16:58 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <c6t9fvkoasea75dqb2766bamk6b0n1se1u@4ax.com>
References: <3ef4c43e@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.164.225
X-Trace: newsgroups.borland.com 1056240992 67.31.164.225 (21 Jun 2003 17:16:32 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail