All data written and read by these functions is formatted as a multi-line string inside the named pipe. Parsing of this data requires understanding of working with multi-line strings inside shell scripts.
In most cases, piping data to sed without the -i option should suffice.
$ pipe_w [write-flag]