I found a reference to fwrite at the following link and it refers me to the
fine Lab "Files" that explains file reading and writing very well. Having
been introduced to J rather early on when print documentation was dominant,
I need to remind myself to search Labs and jwiki for documentation, too.
files script and other essential scripts had been
merged into a single stdlib script which is loaded
automatically by standard profile. For backward
compatibility with j602, load'files' does not raise
any error but it is an no-op. Documentation for stdlib
should be somewhere in jwiki.
you can typ
Well maybe so, but I could not find any mention of fwrite,
and there's no boxing on the right argument.
But that does work.
Thanks.
On Tue, May 23, 2017 at 9:47 PM, bill lam wrote:
> Chris probably meant
> (5!:5 <'t2') fwrite '~user/filename'
>
>
>
---
Chris probably meant
(5!:5 <'t2') fwrite '~user/filename'
On 24 May, 2017 8:45 am, "Brian Schott" wrote:
If I understand your comment, I get a different error.
(5!:5 <'t2') 1!:2 <'~user/filename'
|file name error
| (5!:5<'t2')1!:2<'~user/filename'
Also, when I load'files' I can see no
Yes, that did it. Needed both boxing and jpath,
but I had only tried each separately.
Thanks much.
On Tue, May 23, 2017 at 9:13 PM, Joe Bogner wrote:
> I think you need to use jpath to resolve ~user
>
> (5!:5 <'t2') 1!:2 <(jpath '~user/filename')
>
>
>
>
>
-
I think you need to use jpath to resolve ~user
(5!:5 <'t2') 1!:2 <(jpath '~user/filename')
On Tue, May 23, 2017 at 8:44 PM, Brian Schott
wrote:
> If I understand your comment, I get a different error.
>
> (5!:5 <'t2') 1!:2 <'~user/filename'
> |file name error
> | (5!:5<'t2')1!:2<'~user/
If I understand your comment, I get a different error.
(5!:5 <'t2') 1!:2 <'~user/filename'
|file name error
| (5!:5<'t2')1!:2<'~user/filename'
Also, when I load'files' I can see no result for names/nl:
coclass'base'
load'files'
nl_jfiles_''
nl_files_''
names_jfiles_''
The right argument to 1!:2 should be boxed. You may prefer to use the file
utilities that take care of ensuring the arguments are valid.
On Tue, May 23, 2017 at 5:14 PM, Brian Schott
wrote:
> I am encountering the following error and could use help.
>
> (5!:5 <'t2') 1!:2 jpath '~user/filename'
>
I am encountering the following error and could use help.
(5!:5 <'t2') 1!:2 jpath '~user/filename'
|domain error
| (5!:5<'t2')1!:2 jpath'~user/filename'
jpath '~user/filename'
/users/brian/j64-806-user/filename
$(5!:5 <'t2')
8627639
datatype 5!:5 <'t2'
literal
JVERSION
Engine: