Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fgets limits?
Message
De
12/04/2001 08:46:53
 
 
À
12/04/2001 05:50:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00494767
Message ID:
00494801
Vues:
17
>VFP 6 now is limited to using files of 16MB and a maximum line length of 8192 bytes using the internal LLF functions; you might consider using the new FILETOSTR() and ALINES() functions rather than the LLF I/O commands. If you have text files with single lines in excess of 8K/line, this may provide a workaround; alternatively, you can use the Scripting.FileSystemObject to handle reading the text file line-by-line; it uses a different set of internal functions and may not run into the problem. OTOH, if you are getting CR/LF delimited text lines that long, I suspect that you have other problems related to parsing the input which are considerably more of a headache...

Thanks for the info. Filetostr doesn't have any limits? Anyway, in my case the 8K bound will do, since lines are never longer than 6400 bytes. And structered in groups of 64 bytes, so parsing is no great deal either.

Auke
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform