Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to read files on disk with the same name as in the A
Message
From
19/10/2005 08:34:09
 
 
To
19/10/2005 08:30:25
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060198
Message ID:
01060201
Views:
14
>Hi,
>
>In my APP there are several files included. This is a kind of a file manager application.
>Now my problem is, if the user wants to read/write a file that is included in the project/APP but also exists on disk. For example there is a logo.jpg in the APP and there is a c:\somewhere\logo.jpg on disk.
>
>The point is, how-to read a file on DISK that has the same name as a file included in the APP.
>
>I already made a work-around for file() with sys(2000), strtofile works fine, but I still cannot read the file on disk back. filetostr() and the low-level (fopen, fread) functions return the contents of the included file.
>
>please help

I learnt this the hard way, just like you have done. I always give the included files obscure names, like dwzx23f9.zxw
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform