Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP using cached files somehow
Message
From
01/09/2004 10:16:40
 
 
To
01/09/2004 09:57:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00938387
Message ID:
00938395
Views:
10
If you are reading the entire file in, and then later writing the whole file back to save it, look at filetostr() to get the file, and strtofile() to save it back....

>hi
>i've a problem writing and saving files to disk. i'm using fopen() to open a file and display it in an edit box. i then make a change to the file and write the editbox.value back to the file which seems to work. i can open the newly saved file in text editor and see the change.
>however, when i open the same file again in VFP, the older version is still the one that i see, not the newly changed and saved file.
>i've tried using fopen(filename,10) for unbuffered, and also tried using fflush() but to no avail.
>any ideas welcomed.
>thanks,
>barry
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform