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:
00809271
Vues:
19
This message has been marked as the solution 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?
>
>Kirk

Put in a large number for the second option like FGETS(ln_fhndl, 9999)
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform