Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with FOPEN() not finding a file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00493650
Message ID:
00493656
Vues:
25
>>>>>>>>>>>>>>>>>>
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform