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 APP
Message
From
19/10/2005 08:30:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
How to read files on disk with the same name as in the APP
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060198
Message ID:
01060198
Views:
51
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
Next
Reply
Map
View

Click here to load this message in the networking platform