Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I do this in VFP (STDIO via FGETS)
Message
From
29/03/1998 20:12:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00087924
Message ID:
00087992
Views:
51
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,
Previous
Reply
Map
View

Click here to load this message in the networking platform