This looks promising, but it doesn't work (J504 -- various reasons, but
we can't upgrade)
> Here is a variation which I think will do what you want:
>
> readfile =: 3 : 0
> if. fexist y do.
> fread y
> else.
> ('readfile: ', y, ' does not exist') 13!:8(24)
> end.
> )
x =. readfile 'c:\git_shell_ext_debug.txt'
x =. readfile 'c:\git_shell_ext_debug.txt'
|control error: readfile
|readfile[1]
Thanks for your attention!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm