how to send return(enter button) character through program in windows c/c++? I want to send an external program "user name" with enter button through pipe but "\n" and "\r" and EOF are not working.
consider if pPipe is the pipe stream for sending the data to the remote process stdin...
fprintf(pPipe,"username\n");