I was wondering how I could write something to stdin and read from stdout or stderr. I understand that stdin is normally for incoming data (from the keyboard) and that we usually write to stdout and/or stderr. I believe I might need to work with the file descriptors and use pipes but I'm really not sure how that works. If anyone is able to help it would be greatly appreciated.