🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: read and write text file

#9
From: didan
Date: Wed, 23 Mar 2005 21:45
17 lines
1488 bytes
here is the code
fPtr = fopen(fileName,"r")
fscanf(fPtr,"%f", &data)

is there any better way to read a file?
 
maeder@glue.ch (Thomas Maeder [TeamB]) wrote:
>"didan" <relaxandfree@yahoo.com> writes:
>
>> I don't know why. It works now. but it takes about 10 second to read
>> it. How to speed up?
>
>You post a lot of questions and very little information.
>
>Please show us the (*minimal*) slow code. We can then try to improve
>on it.
Technical Details
Message-ID: <4241e36f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <424048bf$1@newsgroups.borland.com> <424055d3$1@newsgroups.borland.com> <m2br9b73jb.fsf@madbox2.local>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,bc0af2e7537b6788
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "didan" <relaxandfree@yahoo.com>
Sender: "didan" <relaxandfree@yahoo.com>
Reply-To: "didan" <relaxandfree@yahoo.com>
Subject: Re: read and write text file
Newsgroups: borland.public.cppbuilder.deployment
X-User-Info: 12.4.211.10     
References: <424048bf$1@newsgroups.borland.com> <424055d3$1@newsgroups.borland.com> <m2br9b73jb.fsf@madbox2.local>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4241e36f$1@newsgroups.borland.com>
Date: 23 Mar 2005 13:45:19 -0800
X-Trace: newsgroups.borland.com 1111614319 207.105.83.66 (23 Mar 2005 13:45:19 -0800)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail