🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: File I/O

#7710
From: Richard M. Ulrich
Date: Tue, 11 Jan 2005 03:34
16 lines
1369 bytes
"Patrick Wong" <patrickwong@computer.org> wrote in message 
news:41e33da8$1@newsgroups.borland.com...
> How can I use BCB(Delphi) File I/O API to resemble tradition file access
> functions in C?
>
> For example, how to open a text file in append mode like
> fopen("example.txt", "a")?

Almost exactly like you have it

FILE* infile = fopen("example.txt","at");

It's in the help system: fopen, fread, feof, fscanf, fprintf, and so on. 
You need to include <stdio>

R
Technical Details
Message-ID: <41e3493e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41e33da8$1@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: "Richard M. Ulrich" <RichardU@UlrichAssociates.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41e33da8$1@newsgroups.borland.com>
Subject: Re: File I/O
Date: Mon, 10 Jan 2005 22:34:39 -0500
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 12.101.9.226
Message-ID: <41e3493e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105414462 12.101.9.226 (10 Jan 2005 19:34:22 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail