title: is there a way to redirect stream to stdin in lua
body: <p>So I was trying to read a file with following method</p>
  <pre><code>file=io.open('test.txt', 'r')
  io.input(file)
  a=io.read()
  print(a)
  io.close(file)
  </code></pre>
  <p>Problem being, I don't really know how to redirect io.read back to stdin stream. I tried:</p>
  <pre><code>io.input(stdin)
  a=io.read()
  print(a)
  </code></pre>
  <p>Is there any way to make this work?</p>
  <p>EDIT:
  Problem solved by implying io.stdin instead of stdin</p>