Hello,

Is it possible to send EOF to cout?


I am doing a test program "tester" and I need to send EOF signal, because I am using a pipe: "tester | tested" and "tested" waits for EOF.

However, when I use "cout << EOF", only -1 is sent to cout.


Thanks.