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