I use the verbs readnoun and writenoun to store J arrays as *.ijn files. NB. reads a J binary noun file
readnoun=:3!:2@(1!:1&(]`<@.(32&>@(3!:0)))) NB. writes a J noun file writenoun=:([: 3!:1 [) (1!:2 ]`<@.(32&>@(3!:0))) ] a=. 'this';'is';(i. 2 3);'an array eh' a writenoun 'c:/temp/a.ijn' readnoun 'c:/temp/a.ijn' On Wed, Dec 16, 2015 at 7:34 PM, 'Rodney Nicholson' via Programming < [email protected]> wrote: > > Thanks everyone - Chris, Brian, Jasmin. Now I understand the problem and > know how to figure the best solution. > Much appreciated. > Rodney. > > > On Wednesday, December 16, 2015 4:53 PM, chris burke < > [email protected]> wrote: > > > > The variable values are not automatically saved; > > The definitions of the variables are in his script, which is automatically > saved. He needs to rerun the script when he loads J again. Also, most > likely the variables should be defined with a global assignment, not local. > > > > On 16 December 2015 at 15:34, Brian Schott <[email protected]> wrote: > > > Rodney, > > > > The variable values are not automatically saved; you have to write a file > > with the values. The J Primer has a short demo of that process that can > > guide you. See the following link. > > > > http://www.jsoftware.com/help/primer/files.htm > > > > -- > > (B=) > > ---------------------------------------------------------------------- > > 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 > -- John D. Baker [email protected] ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
