Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read file from disk, not from exe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01414757
Message ID:
01414764
Vues:
59
This message has been marked as a message which has helped to the initial question of the thread.
>I have a config.fpw included with the exe as a text file in the project/other section. In the exe I have a function that needs to read the content of another disk file, in a different folder. The disk file happens to be named config.fpw as well, yet VFP functions (FILE(), FREAD(), etc) keep reading the content of the config.fpw file from the exe, even though I pass the file name with the complete path.
>There must be a way to force VFP to read the file from disk, right? TIA

Check the message #1404679 and the whole thread. I guess the solution may be to temporarily remove or rename that file from exe, read the actual file, then rename back - just an idea from the top of my head / not tested.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform