I am trying to create a pipe in my c program to input data to another program myProgram.exe. All I need to do is to get myProgram running and send "quit" from the main program. The problem is I don't know how I can create a pipe in c.
I got a working Perl example somewhere:
open(myHandle, ".../myProgram.exe");
//... (do something else) ...
printf(myHandle, "quit");
close(myHandle);
Can somebody please help me translate this into c code? Please keep in mind I'm running under Windows so there is no unistd.h available.
Cheers, B