title: Splitting large text file into smaller text files by line numbers using Python
body: <p>I have a text file say really_big_file.txt that contains:</p>
  
  <pre><code>line 1
  line 2
  line 3
  line 4
  ...
  line 99999
  line 100000
  </code></pre>
  
  <p>I would like to write a Python script that divides really_big_file.txt into smaller files with 300 lines each. For example, small_file_300.txt to have lines 1-300, small_file_600 to have lines 301-600, and so on until there are enough small files made to contain all the lines from the big file.</p>
  
  <p>I would appreciate any suggestions on the easiest way to accomplish this using Python</p>