Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very Large FIle FREAD
Message
 
 
To
23/12/1998 11:03:13
Robert Byrd
National Association of Homebuilders
Washington, District of Columbia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00169987
Message ID:
00170567
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform