r

# Split with custom delimiter
result = f.split(2, &quot;custom_data.txt&quot;, &quot;output&quot;, &quot;|&quot;, &quot;&quot;)
# Splits on pipe character boundaries

# Smart boundary detection
result = f.split(2, &quot;log_file.txt&quot;, &quot;log_parts&quot;, &quot;\n&quot;, &quot;start&quot;)
# Searches backwards for delimiter to avoid breaking content
</code></pre></div>
<p><strong>Split Options</strong>:
- <strong>Basic</strong>: Splits file into equal-sized parts
- <strong>CSV</strong>: Preserves 