; (LF ,~ ":)&.> i. 3 0 1 2 a. i. ; (LF ,~ ":)&.> i. 3 48 10 49 10 50 10
Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of PackRat > Sent: Thursday, January 31, 2008 9:24 PM > To: [email protected] > Subject: [Jprogramming] Beginner--how to change space separator to LF? > > 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
