Article View: borland.public.cppbuilder.nativeapi
Article #13186Re: Limit of fopen and/or fread
From: Remy Lebeau (TeamB)
Date: Fri, 24 Oct 2003 05:11
Date: Fri, 24 Oct 2003 05:11
13 lines
1341 bytes
1341 bytes
"Mike King" <emailMK@excite.com> wrote in message news:3f98a40e$1@newsgroups.borland.com... > 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? If so, then you have the second and third parameters reversed. Although the end effect will be the same - 16,384 bytes read each time. Gambit
Technical Details
Message-ID:
<3f98b599$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f98a40e$1@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-23 22:19:58 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f98a40e$1@newsgroups.borland.com> Subject: Re: Limit of fopen and/or fread Date: Thu, 23 Oct 2003 22:11:22 -0700 Lines: 15 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: 67.22.137.75 Message-ID: <3f98b599$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066972569 67.22.137.75 (23 Oct 2003 22:16:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail