title: Writing data to text files in series
body: <p>I have a number of fields that need to be populated in order, as well as some of the fields need to be auto populated. When I populate the txt file, it all comes in as one long sting, but I need each row of code to represent each row of text.  Additionally, I cant seem to figure out how to get the "Market" and my Glob command to populate within the new text file. </p>
  
  <pre><code>market= ("Squds")
  
  import os
  os.chdir("C:/Users/Output")
  file = open("testCF.txt","a")
  file.write('"market":'[Market])
  file.write('"vendor"')
  file.write('"mileStoneUpdates":"N"')
  file.write('"woName":' [(glob.glob("C:/Users/.txt"))])
  file.write('"buildStage":"C"')
  file.write('"designType":"Core"')
  file.write('"woOverwrite":"Y"')
  
  
  
  file.close()
  </code></pre>