Break a text file into chunks based on line like the string split operation?
<p>I have text report files I need to "split()" like strings are split up into arrays.</p>

<p>So the file is like:</p>

<pre>
BOBO:12341234123412341234
1234123412341234123412341
123412341234
BOBO:12349087609812340-98
43690871234509875
45

BOBO:32498714235908713248
0987235
</pre>

<p>And I want to create 3 sub-files out of that splitting on lines that begin with "^BOBO:".  I don't really want 3 physical files, I'd prefer 3 different file pointers.</p>
