title: Why is stdout printing out an empty string in this case?
body: <p>I am reading about subprocess and playing around with some code.
  I'm using Windows 7 with Python3.6</p>
  
  <pre><code>import subprocess
  
  
  process = subprocess.Popen(['notepad', 'C:\\Users\Amit\Downloads\InsiderTrades.txt'],stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  #I'm opening a text file which has a list of stock tickers
  
  stdout1, stderr1 = process.communicate()
  print(stdout1.decode('ASCII'))
  </code></pre>
  
  <p>The output I'm getting is nothing or</p>
  
  <p><code>b''</code> as the value for stdout1. </p>
  
  <p>I"m not quite sure what <code>communicate</code> is outputting in this case. 
  I was under the impression that it would output the text from my text file or it would output anything I type into the text file.</p>
  
  <p>I tried typing into the newly opened text file as well, but I'm still getting the same output , <code>b''</code></p>
  
  <p>So what am I getting an empty string, despite typing something into the newly opened textfile. </p>