I think this is a bug, it should raise a domain error if the
left argument is not literal, just as the same as
   (i.10) 1!:2 <'testfile'
|domain error
|   (i.10)    1!:2<'testfile'
 
1!:2&2 is special, otherwise smoutput can not work.

Just as others had suggested, it is easy to stringify your data tables
into files, however, it is not so trivial for other clients to
parse the file. ymmv.

Чт, 03 дек 2015, Alex Giannakopoulos написал(а):
> Ah, OK, Joe, I think I see what the problem is.
> If I simply write a quoted string to the file it works fine. E.g.
> 
> 1!:21 <'testfile'
> 
> 30029424
> 
>    'hello' 1!:2 (30029424)
> However I was trying to dump non-string variables, viz. tables, which is
> what it didn't like.  E.g.
>     f1 =.1!:21 <'testfile'
> 
>     data =. >: i.10
> 
>     data 1!:2 f1
> Just filled the file with binary data which I won't bother to put up here.
> 
> I was fooled because
>    data 1!:2 (2)  NB. 2 => the screen
> works
> 
> So is there a simple way to stringify my data tables so they can be streamed
> to file easily?
> 
> Thanks
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to