Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very Large FIle FREAD
Message
 
À
23/12/1998 11:03:13
Robert Byrd
National Association of Homebuilders
Washington, District de Colombia, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00169987
Message ID:
00170567
Vues:
25
>Has anyone done an FOPEN and FEOF on a file that is larger than 2.1 GB? I seem to be able to do the FOPEN, but the FEOF returns .T.
>
>Regards, Bob

Robert,

A quick glance at the FoxAPI indicates that Foxpro passes a long variable type for positioning with _fseek. _fseek is also used for determining EOF. This would mean that the max file size that Foxpro's low level file functions fseek and feof can handle is 2,147,483,647 bytes.

I did not dig into the fread/fwrite functions so I don't know if simple sequential reads/writes past 2 Gig would work or not. You could test it, if it does and you do not need positioning then you could use an API call to get the file size.

Regards,
Mike
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform