Hello Terrence;

Note that

  y -. CR  NB. Less

is the same as

  (y ~: CR)#y

and

  y, LF -. {: y.

will add the LF if needed.




Terrence Brannon wrote:
Pascal Jasmin <godspiral2000 <at> yahoo.ca> writes:

as long as the last line ends with LF, it will cut on LF.

yes, but when it does not, you need a function such as that found in Ch. 17 of
"learning j" -
tidy =: 3 : 0
y. =. y. , (LF ~: {: y.) # LF   NB. supply LF
(y. ~: CR) # y.                 NB. remove CR
)

update to j601 is an exercise for the reader.



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


--
------------------------------------------------------------------------
|\/| Randy A MacDonald   | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED]  |
|\ |                     | The only real problem with APL is that
BSc(Math) UNBF'83        | it is "still ahead of its time."
Sapere Aude              |     - Morten Kromberg
Natural Born APL'er      | Demo website: http://156.34.65.44/
-----------------------------------------------------(INTP)----{ gnat }-

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

Reply via email to