SaveText() locks up program if file is unwritable

BlitzMax Forums/BlitzMax Bug Reports/SaveText() locks up program if file is unwritable

Under WinXP:
If the file you are trying to save to is in use by another process, - in my case a csv file open in OpenOffice, - Savetext() will lockup my program (in debug mode at least), and the only way out is killing the program in taskmanager.

Could it fail instead and maybe have a return code too?