title: VS Code Python 3 doesn't actually create text file but it can still read from it
body: <p>I've been using the stock Python IDLE for a while which has worked great, but I just downloaded VS Code and whilst it's a clear upgrade, I've noticed an issue with it, particularly with databases and text files.</p>
  
  <p>I created a simple program which writes to a text file and then reads from it:</p>
  
  <pre><code>def writeText():
      textFile = open("test.txt","w")
      textFile.write("test")
      textFile.close()
  def readText():
      textFile = open("test.txt","r")
      store = textFile.readlines()
      print(store)
  
  writeText()
  readText()
  </code></pre>
  
  <p>The first procedure should create 'test.txt' and write to it, whilst the second procedure will print the lines from it.</p>
  
  <p>When I run the program in VS Code, the output is correct. However, when I check my file directory, there is no text file called 'test.txt', and yet it was able to output correctly. </p>
  
  <p>When I run this code in the Python IDLE, it creates the text file correctly.</p>
  
  <p>Can anyone help me get to the bottom of this? Thanks</p>