Add pipe function to read/write to pipes.
#722
+50
−2
pipe function to read/write to pipes.
#722