>How can I check to see if a file (text file) exists in a folder and if it does append to it, but if it doesn't create the file and then write to it.
>
>Probably very simple, but hey its Friday.
>
>E.g
>
>If Exists(Myfile.txt)
> Open myfile for Append
>Else
> Open myfile for Output
>Endif
Ger,
You don't have to check anything if you use STRTOFILE() function.
? STRTOFILE(lcStr, "Myfile.txt", .T.)
--sb--