Having this example:

Code:
/write test.txt " test


and executing:

Code:
/write -ds" test.txt


will return: * /write: invalid parameters

so, to delete avoiding this error we must execute:

Code:
if ($read(test.txt,nts,") != $null) write -dl $+ $readn test.txt


Can be checked somehow to not avoid errors on /write -ds" ?