Re: [julia-users] Julia programs in pipes

2016-03-04 Thread Stefan Karpinski
Just read from STDIN and write to STDOUT and this should work as in any other language. You may need to call `flush(STDOUT)` sometimes since output is buffered – depends on what kind of buffering you need. On Fri, Mar 4, 2016 at 12:05 PM, Ben Ward wrote: > Hi, > > I'm

[julia-users] Julia programs in pipes

2016-03-04 Thread Ben Ward
Hi, I'm wondering how easy it is to make a Julia script that can be part of a shell pipeline `cat file > julia myscript.jl > output.txt`? When reading the documentation, I get the impression most io is designed to be done all at once. I know how to loop over a file handle or stream, and I