🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #10

Re: read and write text file

#10
From: Hans Galema
Date: Wed, 23 Mar 2005 22:15
14 lines
1369 bytes
didan wrote:
> here is the code
> fPtr = fopen(fileName,"r")
> fscanf(fPtr,"%f", &data)

With one fscanf you will not read 30 MB.

You should show a complete loop.

And all the types of the variables.

You should also tell of course how the datafile is build up.

Hans.
Technical Details
Message-ID: <4241eae4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <424048bf$1@newsgroups.borland.com> <424055d3$1@newsgroups.borland.com> <m2br9b73jb.fsf@madbox2.local> <4241e36f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,bc0af2e7537b6788
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 23 Mar 2005 23:15:05 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.deployment
Subject: Re: read and write text file
References: <424048bf$1@newsgroups.borland.com> <424055d3$1@newsgroups.borland.com> <m2br9b73jb.fsf@madbox2.local> <4241e36f$1@newsgroups.borland.com>
In-Reply-To: <4241e36f$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <4241eae4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111616228 129.125.201.248 (23 Mar 2005 14:17:08 -0800)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail