This content has been marked as final. Show 3 replies
Yeah, I just figured that one out. I used the buddy API functions to
delete the file. Then I used fileIO to re-create and edit it. Works
fine, but kind of goofy to have to do it that way.
You can also delete it with fileIO's own delete() method. No need for
You could try and open the file, if it's status is -37, it does not
exist and you can create it and write to it. Otherwise, delete it first.
if (theFile.status() = -37) then
-- file does not exist appearantly
-- delete file before writing to it
Not sure if kind of raising the error is the preferred way to go, but it
does the trick.
Word One - Denver wrote:
> Yeah, I just figured that one out. I used the buddy API functions to
> delete the file. Then I used fileIO to re-create and edit it. Works
> fine, but kind of goofy to have to do it that way.