UD:
WRITE expr {ON|TO} [file.var,] record.ID.expr [ONERROR]

UV:
WRITE[U] expression {ON | TO} [file.variable,] record.ID
[ON ERROR statements] [LOCKED statements]
[THEN statements] [ELSE statements]


Susan Joslyn wrote:
> When a BASIC program in either U2 flavor attempts a write to a file that
> cannot be written to the program bombs completely out to TCL and no
> information is given about the file, nor about the specifics (is it the
> owner, the group, the RWX permissions?).
>
> There are system commands in both flavors that can be used to query a file's
> write-ability before attempting the WRITE.  Before I go try to find every
> write in the system and put that check into place, I'm wondering why can't
> the write itself do this?  Ideally not bomb out of the program, but even if
> that is hard to correct, reporting the NAME OF THE FILE that couldn't be
> written to would save many hours of system scouring!
>
> Susan Joslyn
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
>
>   

-- 
------------------------------------------------------------------------
Jeff Schasny - Denver, Co, USA
jschasnyATgmailDOTcom
------------------------------------------------------------------------
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to