🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: File I/O

#7714
From: Patrick Wong
Date: Tue, 11 Jan 2005 10:31
25 lines
2015 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:41e3561e$3@newsgroups.borland.com...
>
> You are asking VCL questions in a Win32 API newsgroup.  FileOpen() is a
VCL
> function.  CreateFile() is the Win32 API for opening/creating files.
>
My perception is that VCL are something present on the IDE componet palette,
which can be drag-n-drop on a form and provide P(roperties)M(ethods)E(vents)
interface for users.  And they are OO to begin with, that is, the user has
to instantiate an object to work with them.  BCB(Delphi) File I/O do not
have object to operate.  This is different with MFC's CFile class.

>
> FileOpen() always opens the file at the beginning of the file.  You would
> then have to seek to the end of the file via FileSeek() after opening it.
>
Thanks.  To ask more specifically, FileOpen() can open an existing file with
desired access mode.  However, when one has to open a *NEW* file, the
FileCreate() does not have such access mode to select.  Do I have to create
it by FileCreate(), then FileClose(), and then FileOpen() again to allow the
file to work in the desired fashion?

Regards,
Patrick
Technical Details
Message-ID: <41e3ab0a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41e33da8$1@newsgroups.borland.com> <41e3561e$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,991cc71bafbd3990
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Patrick Wong" <patrickwong@computer.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41e33da8$1@newsgroups.borland.com> <41e3561e$3@newsgroups.borland.com>
Subject: Re: File I/O
Date: Tue, 11 Jan 2005 18:31:36 +0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 203.82.252.252
Message-ID: <41e3ab0a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105439498 203.82.252.252 (11 Jan 2005 02:31:38 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail