Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read large file (lotus, word...) with froxpro
Message
From
15/07/2003 09:23:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/07/2003 09:19:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00810173
Message ID:
00810176
Views:
11
>Hi
>
>We want to read very large file (30 meg for example) with FoxPro and split this file in section of 5 meg. This section will be send and join again at the other end. We want the best way to read the file and split.
>
>Mike

You could use string manipulation functions (FileToStr() and StrToFile(), or LLFF. IMO, LLFF are more efficient for large files, since you don't read the entire file at a time, and therefore don't risk running out of real RAM (and using virtual memory). However, I didn't try to read such large chunks at a time (of course, you can also read smaller chunks, and then combine them).

The relevant LLFF in this case are: fopen(), fclose(), fread(), fwrite(), feof().

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform