I'm a really "neo" neophyte with J.  I'm trying to (1) read one or more 
CRLF-separated lists from files on disk, (2) convert them to vectors, 
(3) operate on the vectors, (4) convert the vectors to LF-terminated 
character data, and (5) write out the resulting lists back to disk 
files.

I've been able to successfully do all of these steps EXCEPT step 4.  In 
looking at all the various J documents and helps, I've found very 
little about converting back and forth between numbers and strings 
(characters), especially in terms of vectors and lists.

Here's the core of my problem:

If I have a vector  1 2 3  that displays (and saves to disk) as 
1<space>2<space>3, how do I convert it to the text list 
1<LF>2<LF>3<LF>, so that it can be saved to disk in the same CRLF-
separated format that the original files had?  (I'm aware of J's host 
terminator conversion when writing to disk.)

I'm sure that the answer is probably extremely simple, but I'm stumped 
and would really appreciate any assistance or insight.  Thanks!

Harvey


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to