On Fri, Mar 26, 2010 at 4:33 PM, Sprague, Webb (OFM)
<[email protected]> wrote:
> 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]

That looks like the error Dan Bron was posting about.

fexist (and fread) were probably not defined on your
system, and
   require'files'
should fix this problem.

Brian Schott's statement should also be valid -- J 5.0.4
would need y. instead of y without a .

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to