s</h3>
<div class="highlight"><pre><span></span><code># Split large file into manageable parts
result = f.split(4, &quot;large_file.txt&quot;, &quot;split_output&quot;, &quot;\n&quot;, &quot;&quot;)
# Returns: [&quot;1.large_file.txt&quot;,&quot;2.large_file.txt&quot;,&quot;3.large_file.txt&quot;,&quot;4.large_file.txt&quot;]

# Split CSV file with header preservation
result = f.split(3, &quot;data.csv&quot;, &quot;csv_parts&quot;, &quot;&quot;, &quot;csv&quot;)
# Each split file includes the original heade