Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I do this in VFP (STDIO via FGETS)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00087924
Message ID:
00087988
Views:
44
>Paul,
>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,

The problem is that I don't have a file handle. I'm not opening a file. This program needs to take it's input from our e-mail system. When my program is called, all of the parameters of the e-mail message are passed through via STDIO or environment variables. The environment variables are easy enough to grab, but the "body" of the message is via STDIO.

Since I don't have a file handle (unless there is some way to to a handle = FOPEN(STDIO), I can't pass it to FGETS. I'll try to see if INKEY will work instead.

-Paul
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform