Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with FOPEN() not finding a file
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00493650
Message ID:
00493656
Views:
26
>>>>>>>>>>>>>>>>>>
>I have the following code in a routine I'm putting together to read in an SDF file, one line/record at a time. I need to do it this way because each line has a descriptor field, which then tells me which table to send that record.
>
>IF FILE('vital3947.txt') && Does file exist?
> gnErrFile = FOPEN('vital3947.txt',12) && If so, open read-write
>ELSE
>...
>
>The IF FILE() above works fine, but the FOPEN() always returns a -1. Any suggestions? I've tried many variations on the FOPEN() line. Help!
>>>>>>>>>>>>>>>>>>

Could it be a pathing problem? Try with full path.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform