>From jconsole.exe on Windows
load'dll'
'msvcrt puts + i *c'cd ,<'test'
test
¡¦¢
0 test
¤¨£
'msvcrt gets + i *c'cd ,<40#'Z'
test
¡¦¢
14035904 test ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
¤¨£
stdin=: 0{::'msvcrt __iob_func + i 'cd ''
'msvcrt fgets + i *c i i'cd (4#'Z');4;stdin
test
¡¦¦¦¢
13971512 tes 4 2009463936
¤¨¨¨£
--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
> What is the input size, you are expecting?
>
> It's probably not a good thing to read the whole
> stdin like that. You need C-style "fgets" for headers and
> C-style "fread" for reading data.
> While keeping the memory footprint low.
>
> I am not sure if you can go it in J with current 1!:n.
> But on UNIX wouldn't be possible to call those
> with cd from libc?
>
>
> --- Lorin Lund <[EMAIL PROTECTED]> wrote:
>
> > Oleg Kobchenko wrote:
> >
> > >log=: smoutput NB. or fwrite&'/path/to/file'
> > >
> > >faulty=: 3 : 0
> > > r=.i.0 0
> > > try. r=.". y.
> > > catch. log '>>> Error ',(":13!:11 i.0),LF,(13!:12 i.0),'<<<'
> > > end. r
> > >)
> > >
> > >
> > I chased Raul's work around first and got things going but
> > I finally took the time to come back and try Oleg's error capture
> > technique with the following results.
> >
> > >>> Error22
> > |out of memory: cgi1
> > | vars=. (1!:1)3
> > <<<
> >
> > cgi1 is the name of the currently running verb.
> > I don't see where to look up the error number.
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm