Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limit of Fgets()
Message
De
18/08/2004 13:18:35
 
 
À
18/08/2004 13:13:57
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00934184
Message ID:
00934190
Vues:
24
>I am trying to read a long string from a .txt file using FGETS, and it is not returning the entire line. Is there a limit of characters that FGETS will return, and if so, is there a way I can get around that? TIA!
>

By default, FGETS() stops at 254 characters. To read more, pass the number of bytes to read as the 2nd parameter.

An alternative approach is to use FileToString() to read the whole file and then break it up with ALINES().

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform