General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only