Beth,
I don't know under what conditions fopen() can return 0, but it's not a valid file handle. So you can't use it as such. I'm with the others I think filetostr() or using adir() to see if there is any file content is a better way to go.
>I ran the display status just before fopening the file and just after closing it in code. It did not show as a user opened file in the first one. In the 2nd one, it showed as a file open with a handle of 0 and a length of 0.
>
>Arror() gets me nothing, because it is not reporting it as an error.
>
>This is a random occurance, because once on friday and now I can get it to run correctly. I have shut down the machine several times trying to correct this problem. It did not fix it. But messing with the program in debug mode getting the problem fixed.