I am having a heck of a time with this. I am not a foxPro programmer by any stretch of the imagination, but I have a task to accoplish. I need to write some text from a table to a file. I am working with some legecy code that uses fcreate and the like, but no matter what I do the handle that comes back is always = -1. the ferror I get is a 5, which I believe means that there is a permission issue. The file is NOT read-only.
Here is the code that I have
then the error checking which is select case on FERROR().
This code has worked on in the pass and I changed nothing in this section before I tried testing out the program.
Is there another way to do this, or does anyone have any suggestions on what I can do about the file handle being -1?
Here is the code that I have
Code:
IF FILE(chkFile)
handle = FOPEN(chkFile)
ELSE
handle = FCREATE(chkFile)
ENDIF
This code has worked on in the pass and I changed nothing in this section before I tried testing out the program.
Is there another way to do this, or does anyone have any suggestions on what I can do about the file handle being -1?