Inter process communication is a really complex topic, not really suited to beginners. As you're a beginner, you're clearly making stuff up as you code for fun, forget about this, it's really not a great avenue to go down, people in the real world almost never do this any how.
If anyone who is programming in the real world needs to do this, anonymous pipes are a good way to go.
http://msdn.microsoft.com/en-us/library/bb546102.aspx[
^]