If you want to code more defensively, "fexist" (in "files.ijs") will tell
you if a file exists or not, i.e.
   fexist 'C:\Program Files\j602\system\main\files.ijs'
1
   fexist 'C:\Not a file that exists'
0


On Thu, Mar 25, 2010 at 4:35 PM, Sprague, Webb (OFM) <
[email protected]> wrote:

> > I don't use these verbs, or the debugger, but the domain error looks
> > like toJ is expecting a string and not seeing one.
> >
> >     fread 'fdrjlksd'
> > _1
> >
> > shows that reading a nonexistent file returns a numeric
> >
> >     toJ fread 'lksdjlksd'
> > |domain error: toJ
> > |       toJ fread'lksdjlksd'
> >
> > that looks like what you're seeing.
>
> That would make sense -- I don't know which file yet is non-existent,
> but that is a reasonable error from what I know about the code.
>
> > What is PTHLDR,str
>         PTHLDR,str
> c:\GMA forecast system - J version\InputData\OFM2012SxAgFcst.txt
>
> Thx!
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to