> I got it. The boxed arrays needed to be boxed before the jappend and
unboxed after the jread.

You can think of a jfile as storing a boxed list. When writing, an open
noun is first boxed, otherwise a boxed list is treated as several items to
be written to individual components. Similarly, reading a list of
components returns a boxed list. For example:

   require 'jfiles'

   a=: ;/1 2 3
   b=: 'hello'

   f=: jpath '~temp/test.ijf'
   jcreate f
1

   (a;b) jappend f
0 1

   'a0 b0' =: jread f;0 1
   a0
┌─┬─┬─┐
│1│2│3│
└─┴─┴─┘
   b0
hello
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to