title: Iterate file name with counter
body: <p>I'm splitting a file based on a string, and would like to have the output file names be numbered. </p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>outputfile = open("output.seq")   
  outputfileContent = outputfile.read()
  outputfileList = outputfileContent.split("&gt;")
  for count, line in enumerate(f):
      for items in outputfileList:
          seqInfoFile = open('%f.dat', 'w')
      seqInfoFile.write(str(items))
  </code></pre>
  
  <p>I'm not sure where to define f. </p>
  
  <p>Thanks for any help!</p>