IOBuffer a Matrix?

I think you want the stdin keyword? e.g.

julia> readchomp(pipeline(`sort`, stdin=IOBuffer("foo\nbar\nbaz")))
"bar\nbaz\nfoo"

That being said, you’d probably be better off compiling your Fortran code into a shared library and calling a subroutine via ccall than piping data in and out as text.

1 Like