Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I do this in VFP (STDIO via FGETS)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00087924
Message ID:
00087992
Vues:
52
There is a default limit (254) for FGETS in VFP. So, for lines longer than 254 you have to specify the max length.

Vlad

>Just to confirm that Marc is correct in his reply. There is no stdio library in VFP as there is in C - fgets is exactly the same in VFP as C (except that you don't limit the characters). Just say string=fgets(handle) - after issuing handle=fopen(filename) - these functions are contained as standard within VFP. As with C, fgets will read until the newline (CR/LF). Also, fputs is almost the same in VFP as in C. Regards,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform