Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FGets() more than 254 char
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00809261
Message ID:
00809275
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
>I have been using fgets to read data from a text file(message that is passed to me, then I turn it into a file and read it). The problem (I just found out) is that some of the segments of the message are more than 254 characters long, at that point fgets seems to stop reading that line like it was carriage return. Thus I end up with truncated data. FREAD will read the whole file it looks like or the number of bytes I tell it, but I don't know how many bytes each segment will be. Anybody have any idea?
>
Hi Kirk,

You can specify max size of the record to read as a second parameter. It's limited to 8192 characters.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform