Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fgets
Message
De
01/08/2001 21:53:15
 
 
À
01/08/2001 15:56:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Fgets
Divers
Thread ID:
00538523
Message ID:
00538676
Vues:
12
>Has anyone had a problem with fgets(). We have a program that goes through a text file and sets the length of the string to 500.
>
>The problem is the function FGETS() function is only pulling 238 characters, but when you use the LEN() function in FOX it says the length is 500. The characters after 238 are geting truncated.
>
>Does fgets have a bug!!!

FGETS( ) returns a maximum of 8192 bytes. If you omit nBytes, FGETS( )returns 254 bytes by default. Try using FGETS(nHandle,500).
ramil
~~ learning to stand still
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform