Unless you're dealing with a huge file, in J it's better to just read the entire file, using verbs from the standard library. See: http://www.jsoftware.com/help/user/lib_files.htm
a=: 'b' fread filename will read the file and noun a will contain a boxed list with one line per element -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergey Kamenev Sent: Thursday, December 04, 2014 14:24 To: [email protected] Subject: Re: [Jprogramming] How to realize readline verb on J? Standart verb 1!:1 3 breaks only by Control-D. I need stop input by "Enter" 04.12.2014 23:16, Sergey Kamenev пишет: > I created a solution, but it is clumsy > > ReadLine =: monad : 0 > shell 'read foo; echo -n $foo' > ) > ---------------------------------------------------------------------- > 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
