How do I use a named pipe? To use the pipe, you open it like a normal file, and use read() and write() just as though it was a plain pipe.