🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Limit of fopen and/or fread

#13196
From: Mike King
Date: Fri, 24 Oct 2003 13:12
7 lines
1289 bytes
> >       bytes_read = fread(buf,1,read_chunk_size,fp);
>
> You are reading 16,384 items of 1 byte each.  I suspect that you meant
> to read 1 item of 16,384 bytes instead, didn't you?

No I want to process a character at a time so if the file contains 500
characters I want the function to succeed.
Technical Details
Message-ID: <3f99254f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!opentransit.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f98a40e$1@newsgroups.borland.com> <3f98b599$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2167243a1bc457e4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-24 06:18:11 PST
From: "Mike King" <emailMK@excite.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f98a40e$1@newsgroups.borland.com> <3f98b599$3@newsgroups.borland.com>
Subject: Re: Limit of fopen and/or fread
Date: Fri, 24 Oct 2003 09:12:47 -0400
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 64.45.143.248
Message-ID: <3f99254f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067001167 64.45.143.248 (24 Oct 2003 06:12:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!opentransit.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail