🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5007

Re: [Remy] Servers closed by OS

#5007
From: Remy Lebeau (TeamB)
Date: Wed, 10 Nov 2004 17:48
20 lines
1584 bytes
"Vladimir Stefanovic" <spam@not.needed> wrote in message
news:41923137@newsgroups.borland.com...

> I did something like this / pseudo /
<snip>
> Instead of:
<snip>

Why use fopen() at all?  Just test for the file's existence and call
OpenFromFile() only if the file actually exists.  SaveToFile() will create
the file if it does not exist yet.

    if( file exists )
        StringList->OpenFromFile( File )
    update StringList as needed...
    StringList->SaveToFile( File )


Gambit
Technical Details
Message-ID: <41925419@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!newsgate.cistron.nl!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41923137@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d2c4483dcd89d02a
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41923137@newsgroups.borland.com>
Subject: Re: [Remy] Servers closed by OS
Date: Wed, 10 Nov 2004 09:48:35 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41925419@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100108825 68.69.17.41 (10 Nov 2004 09:47:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!newsgate.cistron.nl!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail