all groups > vb.net upgrade > november 2003 >
You're in the

vb.net upgrade

group:

NO native HUGE FILE support with FilePut and FileGet



NO native HUGE FILE support with FilePut and FileGet Rembrand
11/5/2003 11:46:36 PM
vb.net upgrade: Hi there fellows

I always program my own database engine. I had hoped that
the FilePut, FilePutObject and its relatives FileGet and
FileGetObject would be able to address more than 2GB.
I'm thinking of 16GB files which I can address on a byte
and strings array level.

I do NOT want to use MS-SQL(yes unlimitted filesize) or
Access (2GB limit too). And even if they where able to
support the filesize I want (>16GB) than I prefer to
program the stuff myself.

Does anybody have a clue to adddress this without creating
8 files of 2GB each? Can somebody tell me why they did not
use the Long integer instead of the regular integer.

Help appreciated.
Thanks





Re: NO native HUGE FILE support with FilePut and FileGet hirf-spam-me-here NO[at]SPAM gmx.at
11/6/2003 9:03:39 AM
* "Rembrand" <anonymous@discussions.microsoft.com> scripsit:
[quoted text, click to view]

Try 'System.IO.BinaryReader' and 'System.IO.BinaryWriter'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Re: NO native HUGE FILE support with FilePut and FileGet Jay B. Harlow [MVP - Outlook]
11/6/2003 9:36:56 AM
Rembrand,
As Herfried suggested, check out the BinaryReader & BinaryWriter classes in
the System.IO namespace along with the Stream & FileStream classes.

[quoted text, click to view]
Using the classes in the System.IO namespace you will be able to address
terabytes (a 64-bit Long value).

My understanding is that FilePut & FileGet are built on the System.IO
namespace so you are avoiding a middle man. However you may need to do more
work yourself.

[quoted text, click to view]
You are dealing with an API that is there to be as compatible as possible
with existing VB6 code.

Hope this helps
Jay

[quoted text, click to view]

AddThis Social Bookmark Button