Is there any reason why I can't do this to read from a named pipe :-
ifstream is ("my_pipe");
is >> var1 >> var2;
(I know I'd want some error handling for a real application).
It seems to work with a named pipe, but is there anything of which I need
to be aware?