title: Reading stdin in Spyder
body: <p>I have some programming assignments which read input data from stdin like this:</p>
  
  <pre><code>text = sys.stdin.readline().strip()
  </code></pre>
  
  <p>I am using Spyder as my development environment, and am not able to find a way to give the stdin. So, I added a -infile option to the code, and am reading from the file.</p>
  
  <p>However, when submitting, I need to revert back to reading the stdin. How can I read stdin in the first place? I know how to do this from linux command line, but for now have to use windows.</p>