title: Read a file till empty line and write what was read to a new text file
body: <p>the abc.txt file looks like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>product/productId: B000179R3I
  product/title: Amazon.com: Austin Reed Dartmouth Jacket In Basics, Misses: Clothing
  product/price: unknown
  review/userId: A3Q0VJTUO4EZ56
  
  product/productId: B000GKXY34
  product/title: Nun Chuck, Novelty Nun Toss Toy
  product/price: 17.99
  review/userId: ADX8VLDUOL7BG
  
  product/productId: B000GKXY34
  product/title: Nun Chuck, Novelty Nun Toss Toy
  product/price: 17.99
  review/userId: A3NM6P6BIWTIAE
  </code></pre>
  
  <p>I need to create three text file for the above(Note: I have got a very large here for example I have shown for three) .           </p>
  
  <pre class="lang-python prettyprint-override"><code>import os
  filepath=os.path.normpath('C:\\Users\\abc.txt')
  with open(filepath,'r') as rf:
      for index,line in enumerate(rf):
          with open ('filename{}.txt'.format(index),'w') as output:
              while(line!=""):
                  output.write(line)
  </code></pre>