Wow! that is great stuff! Thanks so much, Marshall.

If I want to take a noun like 'all' which is just a list of text strings.
and save it as a standard text file 'all.txt' in a specific folder on my
system, how would you do that?

Skip

On Wed, Nov 9, 2011 at 8:34 PM, Marshall Lochbaum <mwlochb...@gmail.com>wrote:

> (nl 0) lists all the nouns in boxed form, and 7!:5 gives the memory used by
> a noun in boxed form, so
>   7!:5 nl 0
> gives you a nice list of all the memory being used.
>
> To save and recover a noun using a file, you can use the inverses (5!:5)
> and ". (". is a strict left inverse of 3 :'5!:5<''y''', at least).
> In other words, if your noun is named 'a', you can save it using
> (5!:5 <'a') 1!:2 <filename
> a =. ". 1!:1 <filename
>
> Mrshall
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to