Article View: borland.public.cppbuilder.nativeapi
Article #2040Re: 32 bit File O and 64 Bit File IO
From: Colin B Maharaj
Date: Sat, 12 May 2007 10:42
Date: Sat, 12 May 2007 10:42
58 lines
2558 bytes
2558 bytes
It was really simpler than I thought. Now my application can read/write to a 160GB file now (at least)! I did a lot of coding doing my own file io routines on an application I wrote many years ago before I know a hint about SQL (my/ms/oracle). The reporting is based on flat files. And folks still use it today. Just have to move everything to a RDBMS now or at least have this as an option for the SQL savvy user. Thanks for all the responses. Colin B Maharaj Full time developer php/xhtml/c++/javascript/css/cshell Trinidad, West Indies [ I Liberated myself from the ] [ Telecoms company I once worked ] Remy Lebeau (TeamB) wrote: > "Colin B Maharaj" <noreply@myhost.com> wrote in message > news:46443D35.2050709@myhost.com... > >> Does the FileWrite routine writes pass 2 or 4 GIGs > > Yes. > >> nowhere do I see that FileWrite is 64 bit based? > > It doesn't need to be, because it doesn't deal with file offsets > directly, so it doesn't care whether the current offset is past 2GB or > not. > >> Similarly does the FileRead routine work pass the 2 or 4 GIGs point? > > Yes. > >> It is clear that FileSeek is both 64 and 32 bit based. So >> doe it mean that most of my recoding will be based on >> using a 64 bit file pointer for seek operations and thats it!! (?) > > File pointers have always been 64-bit at the OS level. > SetFilePointer() has supported 64-bit file sizes for many years now. > FileSeek(), however, did not utilize the higher 32 bits until BCB6. > > > Gambit > >
Technical Details
Message-ID:
<46459a00$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46443D35.2050709@myhost.com> <4644a0f8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,63387be217b705f8 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 12 May 2007 06:42:09 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: 32 bit File O and 64 Bit File IO References: <46443D35.2050709@myhost.com> <4644a0f8@newsgroups.borland.com> In-Reply-To: <4644a0f8@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000739-3, 05/11/2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 190.58.11.98 Message-ID: <46459a00$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1178966528 190.58.11.98 (12 May 2007 03:42:08 -0700) Lines: 58 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail