title: Saving a .txt file in a different directory than the original python3
body: <p>I am trying to save a file that my program creates a directory that is within the directory the program is run in. </p>
  
  <p>Basically my it looks like this:</p>
  
  <pre><code>DIRECTORY_ONE:
       program.py
       DIRECTORY_TWO:
  </code></pre>
  
  <p>So I want program.py to save to DIRECTORY_TWO</p>
  
  <p>I've tried </p>
  
  <pre><code>outFile = open("/output_DB/" + "out.txt",'w')
  </code></pre>
  
  <p>and making into a with ... as block among a few other methods</p>
  
  <p>What is the best way to do this task?</p>