My guess is that you have a file with the same name included in your project, in which case it is included in your exe and seen as read only. Another possibility is that you must include the path.
>I have been beating my head against the wall trying to solve this but no luck so far.
>
>Basically I am collecting information that I need to append to a file with the following
>
>
lnNumberBytes = Strtofile(clString,lcFilename, .t.)
>
>This works fine when in development, however, when I am running the exe, the number of bytes returned is 0. The first time the lcFileName is created, it save, but when appending it will not.
>
>I tried passing a 1 but still the same results.
>
>
lnNumberBytes = Strtofile(clString,lcFilename, 1)
>
>
>Any suggestions would be greatly appreciated.
>
>Thanks in advance