SaveText with fail-safe?

BlitzMax Forums/BlitzMax Beginners Area/SaveText with fail-safe?

If I use Savetext on a dir + filename that doesn't exist it simply crashes. The function itself doesn't return true of false like other file commands. So I can't catch an error that way.