I am thinking it's due to it being a relative path and load and fread are
using a different starting point. Pascal's suggestion could work as it's a
absolute path. Alternatively try:

load     '/rootPath/home/path/to/my/script.ijs'

and

fread     '/rootPath/home/path/to/my/script.ijs'


On Wed, Jun 25, 2014 at 1:32 PM, 'Pascal Jasmin' via Programming <
[email protected]> wrote:

> can try load jpath '~/path/to/my/script.ijs'
>
>
> ----- Original Message -----
> From: Jon Hough <[email protected]>
> To: "[email protected]" <[email protected]>
> Cc:
> Sent: Wednesday, June 25, 2014 11:52:16 AM
> Subject: [Jprogramming] File name error
>
> I have a script lying somewhere on my system (not in my J system
> directory).
> If I try to load it thus:
> load     'home/path/to/my/script.ijs'
>
> I get the following error:
> |file name error: script|       0!:0 y[4!:55<'y'
> However if I try to read it:
> fread     'home/path/to/my/script.ijs'
> It outputs the text of my script file into my J session, as expected.
> So I am not really sure what my error is. The script exists and is in the
> place specified.
> Notes:
> I'm using Linux with J801. (also tried it with J602, which I have on my PC
> too  --  same error ).
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to