?  The 01 is correct as it stands.  On Windows I get correct operation:

   readln =: [: (1!:01) 1:
   readln''
abcdefg
abcdefg

The first line is what I typed, the second is the JE's result

Henry Rich

On 6/19/2018 5:05 PM, james faure wrote:
Either way, it's no good

________________________________
From: Programming <[email protected]> on behalf of devonmcc 
<[email protected]>
Sent: Tuesday, June 19, 2018 11:00:39 PM
To: [email protected]
Subject: Re: [Jprogramming] getline

The "01" following the "!:" is probably supposed to be "0]1".


Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Michal Wallace 
<[email protected]> Date: 6/19/18  16:06  (GMT-05:00) To: 
[email protected] Subject: Re: [Jprogramming] getline
  readln =: [: (1!:01) 1:




On Tue, Jun 19, 2018 at 2:45 PM james faure <[email protected]> wrote:

Hello, how can one read stdin one line at a time ?


#! /usr/bin/j8

stdin''


is no good.
----------------------------------------------------------------------
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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


---
This email has been checked for viruses by AVG.
https://www.avg.com

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

Reply via email to