title: Append values without commas
body: <p>I am trying to write a loop that writes a text file with values seperated by spaces only. For some reason python is inserting brackets at the beginning and end as well as commas between each value. I have tried join and a couple other methods but have not been succesful. </p>
  
  <pre><code>Here is my code: 
  import os
  import numpy
  
  os.chdir('/Users/DevEnv/Case_1')
  
  
  try:
      os.remove('fparameters.txt')
  except OSError:
      pass
  
  n=50
  N=50
  
  tlength=1501  #set number of generations 
  
  
  
  for x in range(0,n):
      A=[]
      for i in range(0,tlength):
          Aj=[]
          for v in range(0,N):
              mu_f, sigma_f = 1.5, 0.5  
              Aj.append(60+ numpy.random.lognormal(mu_f, sigma_f, size=None))     
  
          A.append(Aj)
  
      outFile = open('fparameters.txt','a')
      for item in A:
          outFile.write('%s ' %item)
      outFile.write('\n')
      outFile.close()
  </code></pre>
  
  <p>Your help would be greatly appreciated!! </p>