🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cannot retrieve file date

#886
From: Jos�
Date: Thu, 03 Jan 2008 11:03
20 lines
1851 bytes
On Wed, 2 Jan 2008 16:03:41 -0800, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote in borland.public.cppbuilder.nativeapi:

>CreateFile() is not creating a file itself.  It is creating a "handle" to 
>the file, so there is always a resource creation occuring.  
>
>The same argument can be said of fopen(), though.  It is able to create new 
>files even though its name suggests it can only open them.  

The name CreateFile() is rather threatening. I do not want to create a
file which already exists, destroying the existing file. 

OTOH, the name fopen() sounds rather safe. If it offers the unexpected
extra service to create a non-existant file, it causes no damage.

I always used fopen() to handle files. Is there a reason why I should
use CreateFile()? Is the use of either function obsolete and frowned
upon?
-- 
Jos�
Technical Details
Message-ID: <i0gpn35bvgrd66k53s7usnqaok04m6b9dd@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com> <477bfc32$3@newsgroups.borland.com> <5p0on3lb068m6ob82jeg8565fmt5e2fsh4@4ax.com> <477c11fb$1@newsgroups.borland.com> <qa5on3d6p24qit5hic73bl397a6pg4b9i3@4ax.com> <477c26ab$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4011bf1b28cc5925
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII
From: Jos� <jose@127.0.0.1>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Cannot retrieve file date
Date: Thu, 03 Jan 2008 12:03:56 +0100
Message-ID: <i0gpn35bvgrd66k53s7usnqaok04m6b9dd@4ax.com>
References: <hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com> <477bfc32$3@newsgroups.borland.com> <5p0on3lb068m6ob82jeg8565fmt5e2fsh4@4ax.com> <477c11fb$1@newsgroups.borland.com> <qa5on3d6p24qit5hic73bl397a6pg4b9i3@4ax.com> <477c26ab$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 4.2/32.1117
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 82.75.73.146
X-Trace: newsgroups.borland.com 1199358312 82.75.73.146 (3 Jan 2008 03:05:12 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail