Thanks!  Switching to IO makes everything work together nicely.  Andrew

On Tuesday, 22 April 2014 00:03:48 UTC-3, Jameson wrote:
>
> An IOStream is a specific instance of file-like object (in particular, 
> the one that represents a file), whereas TTY is the specific instance 
> that represents a terminal-like object. IO is the abstract type that 
> both inherit 
>
> On Mon, Apr 21, 2014 at 10:58 PM, andrew cooke 
> <[email protected]<javascript:>> 
> wrote: 
> > 
> > I am a little surprised to find that STDIN is not an IOStream and that I 
> > cannot pass it to some code that handles the result of open()ing a file. 
> > 
> > I also can't find any clear docs on what the difference between these 
> things 
> > are, or how I convert STDIN into an IOStream.  The docs mention Pipes 
> but 
> > I'm not sure how those are connected either. 
> > 
> > Can anyone help?  Am I missing something obvious (sorry!)? 
> > 
> > Thanks, 
> > Andrew 
>

Reply via email to